Advertisement
Guest User

Untitled

a guest
Mar 12th, 2013
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. # start a non-login shell by default for each new window
  2. set -g default-command 'zsh'
  3.  
  4. # set default terminal
  5. set -g default-terminal "screen-256color"
  6.  
  7. # make sure that DISPLAY does not get set by tmux
  8. set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
  9.  
  10. # vi keybindings
  11. setw -g mode-keys vi
  12. set -g status-keys vi
  13.  
  14. # enable utf-8
  15. setw -g utf8 on
  16.  
  17. # reload statusbar every 5 seconds
  18. set -g status-interval 5
  19.  
  20. # statusbar has white on black/transparent background
  21. set -g status-bg default
  22. set -g status-fg white
  23.  
  24. # black text on gray background when in copy mode. same colors for message bar.
  25. setw -g mode-bg colour39
  26. setw -g mode-fg black
  27. set -g message-bg colour39
  28. set -g message-fg black
  29.  
  30. # don't limit status-left to the 10-char default
  31. set -g status-left-length 100
  32.  
  33. # hostname in bright red, 24-hr time in blue, date in green
  34. set -g status-left '#[fg=red,bright]#H #[fg=colour33]%k:%M #[fg=green,bright]%d-%b'
  35.  
  36. # session name in bright red, load avg in bright green
  37. set -g status-right '#[fg=red,bright]#S#[fg=colour244] | #[fg=green,bright]#(cut -d " " -f 1-4 /proc/loadavg)'
  38.  
  39. # active pane's border in blue, other pane borders in white
  40. #set -g pane-active-border-fg brightblue
  41. set -g pane-active-border-fg colour33
  42. set -g pane-border-fg white
  43.  
  44. # set scrollback to 5000 lines
  45. set -g history-limit 5000
  46.  
  47. # window name format
  48. setw -g window-status-format '#I.#P)#W#F'
  49.  
  50. # selected window name format
  51. setw -g window-status-current-format '#[fg=blue,bright]#I.#P)#W#F'
  52.  
  53. # color for windows with flags (activity, etc)
  54. setw -g window-status-bell-attr default
  55. setw -g window-status-content-attr default
  56. setw -g window-status-activity-attr default
  57.  
  58. setw -g window-status-bell-fg red
  59. setw -g window-status-content-fg red
  60. setw -g window-status-activity-fg red
  61.  
  62. setw -g window-status-bell-bg default
  63. setw -g window-status-content-bg default
  64. setw -g window-status-activity-bg default
  65.  
  66. # start window/pane numbering at 1 instead of 0
  67. set -g base-index 1
  68. set -g pane-base-index 1
  69.  
  70. # since index 0 isn't used, bind 0 to window 10
  71. bind 0 selectw -t :10
  72.  
  73. # change command key from C-b
  74. set -g prefix `
  75. set -g prefix2 C-o
  76.  
  77. # send prefix to remote tmux instance
  78. #bind i send-prefix
  79. bind ` send-prefix
  80.  
  81. # toggle automatic rename
  82. bind a setw automatic-rename
  83.  
  84. # window creation/navigation/etc.
  85. bind c new-window
  86. bind C-c new-window
  87. bind o last-window
  88. bind C-o last-window
  89. bind Tab last-window
  90. bind p previous-window
  91. bind C-p previous-window
  92. bind n next-window
  93. bind C-n next-window
  94. bind C-d detach
  95.  
  96. # don't switch layouts with Space/Ctrl-Space
  97. unbind C-Space
  98. unbind Space
  99.  
  100. # swap windows (companion to the "." default keybinding)
  101. bind > command-prompt "swap-window -t '%%'"
  102.  
  103. # toggle activity monitoring in current window
  104. bind M setw monitor-activity
  105.  
  106. # toggle pane synchronization
  107. bind S setw synchronize-panes
  108.  
  109. # kill current pane (and unbind default keybinding for this action)
  110. bind k confirm-before kill-pane
  111. unbind x
  112.  
  113. # list sessions
  114. bind l list-sessions
  115.  
  116. # change keybindings for window splitting so they make sense
  117. bind | split-window -h
  118. #bind - split-window
  119. bind _ split-window
  120.  
  121. # make "C-Space" work for next-layout as well as "Space"
  122. bind C-Space next-layout
  123.  
  124. # copy buffer to clipboard
  125. bind C-y saveb /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xsel -ib; rm /tmp/tmux-buffer"
  126. bind y saveb /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xsel -ib; rm /tmp/tmux-buffer"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement