Advertisement
hu6

.tmux.conf

hu6
Dec 2nd, 2012
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. #Software used ATOC:
  2. # `-> tmux => 1.4-3
  3. #-------~---~----------~----------~----
  4. # KEYBINDS
  5. #-------~---~----------~----------~----
  6.  
  7. # remap prefix to Control + a
  8. set -g prefix C-a
  9. unbind C-b
  10. bind C-a send-prefix
  11.  
  12. # force a reload of the config file
  13. unbind r
  14. bind r source-file ~/.tmux.conf
  15.  
  16. # quick pane cycling
  17. unbind ^A
  18. bind ^A select-pane -t :.+
  19.  
  20. #Prefix Key
  21. #set -g prefix Mod1Mask-a
  22. #set -g prefix C-a
  23. set -g status-keys vi
  24. setw -g mode-keys vi
  25. setw -g mode-mouse on
  26.  
  27. # Unbinds
  28. # `-> these are part of the default mappings
  29. # and will get new functionality
  30. #unbind c
  31. unbind i
  32. unbind l
  33. unbind s
  34. unbind w
  35.  
  36. # Reload Config File
  37. #bind F12 source-file ~/.tmux.conf
  38.  
  39. # New Window
  40. bind n neww
  41.  
  42. # Choose Window
  43. bind m choose-window
  44.  
  45. # Choose Session
  46. bind a choose-session
  47.  
  48. # Close Pane
  49. #bind c kill-pane
  50.  
  51. # Toggle Statusbar
  52. bind t set status
  53.  
  54. # Select Windows Ctrl-[1-0]
  55. bind -n ^F1 select-window -t 1
  56. bind -n ^F2 select-window -t 2
  57. bind -n ^F3 select-window -t 3
  58. bind -n ^F4 select-window -t 4
  59. bind -n ^F5 select-window -t 5
  60. bind -n ^F6 select-window -t 6
  61. bind -n ^F7 select-window -t 7
  62. bind -n ^F8 select-window -t 8
  63. bind -n ^F9 select-window -t 9
  64. bind -n ^F10 select-window -t 10
  65. bind -n ^F11 select-window -t 11
  66. #bind -n ^F12 select-window -t 12
  67.  
  68. bind ^h select-pane -L
  69. bind ^j select-pane -D
  70. bind ^k select-pane -U
  71. bind ^l select-pane -R
  72.  
  73. bind h resize-pane -L
  74. bind j resize-pane -D
  75. bind k resize-pane -U
  76. bind l resize-pane -R
  77.  
  78. bind F1 select-pane -t 1
  79. bind F2 select-pane -t 2
  80. bind F3 select-pane -t 3
  81. bind F4 select-pane -t 4
  82. bind F5 select-pane -t 5
  83. bind F6 select-pane -t 6
  84. bind F7 select-pane -t 7
  85. bind F8 select-pane -t 8
  86. bind F9 select-pane -t 9
  87. bind F10 select-pane -t 10
  88. bind F11 select-pane -t 11
  89. # bind F12 select-pane -t 12
  90.  
  91. bind i split-window -h
  92. bind s split-window
  93.  
  94. # Sessions
  95. #bind t attach -d -t tmux
  96. #bind i attach -d -t irc
  97. #bind r attach -d -t rails
  98.  
  99. #-------~---~----------~----------~----
  100. # WINDOWS & PANES
  101. #-------~---~----------~----------~----
  102.  
  103. # Start counting at 1
  104. set -g base-index 1
  105.  
  106. set -g mouse-select-pane on
  107. setw -g automatic-rename on
  108. set -g display-panes-time 1000
  109.  
  110. #-------~---~----------~----------~----
  111. # MISC SETTINGS
  112. #-------~---~----------~----------~----
  113.  
  114. # Use ZSH
  115. set -g default-shell /bin/bash
  116. set -g default-command /bin/bash
  117.  
  118. # Set Window Title
  119. set-window-option -g automatic-rename on
  120. set -g set-titles on
  121. set -g set-titles-string 'tmux: #T'
  122.  
  123. # Repeat time
  124. set -g repeat-time 100
  125.  
  126. # Monitor and highlight window acitvity
  127. setw -g monitor-activity on
  128.  
  129. # 256 Colors note - rxvt stuff breaks ncmpcpp
  130. #set -g default-terminal "rxvt-unicode-256color"
  131. set -g default-terminal "screen-256color"
  132.  
  133. #if [[ $TERM = "rxvt-256color" ]]; then export TERM="rxvt-unicode-256color"; fi
  134.  
  135. # Border Colors
  136. set -g pane-border-fg black
  137. set -g pane-active-border-fg blue
  138. set -g display-panes-colour white
  139. set -g display-panes-active-colour red
  140.  
  141. # UTF8
  142. setw -g utf8 on
  143. set -g status-utf8 on
  144.  
  145. # Don't close windows
  146. #set -g set-remain-on-exit on
  147.  
  148. #-------~---~----------~----------~----
  149. # STATUS & MESSAGE
  150. #-------~---~----------~----------~----
  151.  
  152. set -g status-justify right
  153. set -g status-bg default
  154. set -g status-fg default
  155. set -g status-interval 5
  156.  
  157. set -g message-attr bold
  158. set -g message-fg black
  159. set -g message-bg yellow
  160.  
  161. # Window list
  162. setw -g window-status-current-fg red
  163. setw -g window-status-current-attr none
  164. #setw -g window-status-alert-attr bright
  165. setw -g window-status-format '#[fg=black]#W#F'
  166. setw -g window-status-current-format '#[fg=red] #W#F'
  167.  
  168. # Left
  169. set -g status-left '#[fg=red]tmux#[fg=black]#H #[fg=red]>>#[fg=black,bold] #T'
  170. set -g status-left-length 100
  171. set -g status-left-fg black
  172.  
  173. # Right
  174. set -g status-right '#[fg=black,bold]|%l:%M'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement