Advertisement
BSDG33KCLUB

.tmux.conf

Jul 3rd, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # set command prefix for tmux
  2. set-option -g prefix C-a
  3. unbind C-a
  4.  
  5. # set vi mode keys
  6. setw -g mode-keys vi
  7.  
  8. # set some bindings for moving around terminals (vim-like)
  9. bind h select-pane -L
  10. bind j select-pane -D
  11. bind k select-pane -U
  12. bind l select-pane -R
  13.  
  14. # Define my custom menu bar
  15. # status bar colors
  16. set -g status-bg black
  17. set -g status-fg white
  18.  
  19. # alignment settings
  20. set-option -g status-justify centre
  21.  
  22. # status left options
  23. set-option -g status-left '#[fg=green][#[bg=black,fg=cyan]#S#[fg=green]]'
  24. set-option -g status-left-length 20
  25.  
  26. # window list options
  27. setw -g automatic-rename on
  28. set-window-option -g window-status-format '#[fg=cyan,dim]#I#[fg=blue]:#[default]#W#[fg=grey,dim]#F'
  29. set-window-option -g window-status-current-format '#[bg=blue,fg=cyan,bold]#I#[bg=blue,fg=cyan]:#[fg=colour230]#W#[fg=dim]#F'
  30. set -g base-index 1
  31.  
  32. # status right options
  33.  
  34. set -g status-right '#[fg=green][#[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default] #($HOME/bin/battery)#[fg=green]]'
  35.  
  36.  
  37. # bind a reload key
  38. bind R source-file ~/.tmux.conf \; display-message " Config reloaded..".
  39.  
  40.  
  41. # Set Copy-Mode settings
  42. bind [ copy-mode
  43. bind -t vi-copy v begin-selection
  44. bind -t vi-copy y copy-selection
  45. bind -t vi-copy V rectangle-toggle
  46. bind ] paste-buffer
  47.  
  48. # buffer
  49. bind Space choose-buffer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement