Advertisement
BSDG33KCLUB

very nice tmux config

Feb 17th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. #Basics
  2. unbind C-b
  3. set -g prefix C-a
  4. set -g mode-keys vi
  5. set -g status-keys vi
  6. set -g default-terminal "screen-256color"
  7.  
  8. # Movement control
  9. unbind j
  10. bind-key j select-pane -t :.+
  11. unbind k
  12. bind-key k select-pane -t :.-
  13. unbind K
  14. bind-key K resize-pane -U 5
  15. unbind J
  16. bind-key J resize-pane -D 5
  17. unbind L
  18. bind-key l resize-pane -R 5
  19. unbind H
  20. bind-key h resize-pane -L 5
  21.  
  22. # Creation control
  23. unbind c
  24. bind-key Enter new-window
  25. bind-key C split-window
  26. bind-key c split-window -h
  27.  
  28. # Other binds
  29. bind-key r source ~/.tmux.conf
  30. bind-key X kill-session
  31. bind-key m command-prompt "split-window 'exec man %%'"
  32.  
  33.  
  34. # Mouse control
  35. #set -g mouse-select-window on
  36. #set -g mouse-select-pane on
  37. #set -g mouse-resize-pane on
  38.  
  39. # Status Bar
  40. set -g status-bg default
  41. set -g status-fg cyan
  42. set -g status-interval 4
  43. set -g status-left ''
  44. set -g status-right ''
  45. #set -g status-left '#[fg=white,bold]#S#[fg=cyan] | #[fg=white,bold]#(echo $USER) '
  46. #set -g status-right '#[fg=white]#H#[fg=cyan] | #[fg=white]#(uname -r)#[default]'
  47. set -g status-justify centre
  48.  
  49. # Set window split options
  50. set-option -g pane-active-border-fg white
  51. set-option -g pane-active-border-bg default
  52. set-option -g pane-border-fg black
  53. set-option -g pane-border-bg default
  54.  
  55. # Highlighting the active window in status bar
  56. setw -g window-status-current-bg default
  57. setw -g window-status-current-fg default
  58. setw -g window-status-bg default
  59. setw -g window-status-fg white
  60. setw -g window-status-activity-attr blink
  61. setw -g window-status-activity-bg default
  62. setw -g window-status-activity-fg default
  63. setw -g window-status-bell-attr blink
  64. setw -g window-status-bell-bg default
  65. setw -g window-status-bell-fg default
  66. #setw -g window-status-format '#[fg=default]#[bg=default] #I #[bg=default]#[fg=black,bold] #W '
  67. #setw -g window-status-current-format '#[fg=default]#[bg=black,bold] #I #[fg=black,bold]#[bg=default] #W '
  68. setw -g window-status-format '#[fg=black] ● '
  69. setw -g window-status-current-format '#[fg=white,bold] ● '
  70. #setw -g window-status-format '#[fg=black] • '
  71. #setw -g window-status-current-format '#[fg=white,bold] • '
  72.  
  73. # Shhhhhh
  74. setw -g monitor-activity off
  75. setw -g monitor-content off
  76. set -g visual-activity off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement