My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.tmux.conf 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ##
  2. ## O P T I O N S
  3. ##
  4. set-option -g default-shell /bin/zsh
  5. # Vim keys
  6. set-window-option -g mode-keys vi
  7. # Top bar
  8. set -g status-position top
  9. # Start numbering at 1
  10. set -g base-index 1
  11. # Allows for faster key repetition
  12. set -s escape-time 0
  13. # Rather than constraining window size to the maximum size of any client
  14. # connected to the *session*, constrain window size to the maximum size of any
  15. # client connected to *that window*. Much more reasonable.
  16. setw -g aggressive-resize on
  17. # Activity monitoring
  18. setw -g monitor-activity on
  19. set -g visual-activity on
  20. # auto window rename
  21. set-window-option -g automatic-rename
  22. ##
  23. ## B I N D I N G S
  24. ##
  25. set-option -g prefix C-b
  26. # set window split
  27. bind-key v split-window -h
  28. bind-key h split-window
  29. # Vi copypaste mode
  30. bind-key -T copy-mode-vi 'v' send -X begin-selection
  31. bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
  32. # Use Alt-vim keys without prefix key to switch panes
  33. bind -n M-h select-pane -L
  34. bind -n M-j select-pane -D
  35. bind -n M-k select-pane -U
  36. bind -n M-l select-pane -R
  37. bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
  38. # set to main-horizontal, 60% height for main pane
  39. bind m set-window-option main-pane-height 60\; select-layout main-horizontal
  40. ##
  41. ## C O L O R S
  42. ##
  43. set -g default-terminal "xterm-256color"
  44. set-option -g status-bg colour0
  45. set-option -g status-fg colour255
  46. set-option -g status-attr default
  47. # default window title colors
  48. set-window-option -g window-status-fg colour244 #base0
  49. set-window-option -g window-status-bg default
  50. # active window title colors
  51. set-window-option -g window-status-current-fg colour9
  52. set-window-option -g window-status-current-bg default
  53. #set-window-option -g window-status-current-attr bright
  54. # pane border
  55. set-option -g pane-border-fg colour235 #base02
  56. set-option -g pane-active-border-fg colour240 #base01
  57. # message text
  58. set-option -g message-bg colour233
  59. set-option -g message-fg colour10
  60. # pane number display
  61. set-option -g display-panes-active-colour colour33 #blue
  62. set-option -g display-panes-colour colour166 #orange
  63. # clock
  64. set-window-option -g clock-mode-colour green #green