Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. # change default command binding
  2. unbind C-b
  3. set -g prefix C-a
  4.  
  5. set-option -ga terminal-overrides ",xterm-256color:Tc"
  6. #set -g default-terminal "screen-256color"
  7.  
  8. # but send it through if pressed twice (i.e. using screen in an ssh session)
  9. #bind C-a send-prefix
  10.  
  11. # Reload the config with a swift motion
  12. bind r source-file ~/.tmux.conf \; display "Reloaded tmux config."
  13.  
  14. # Split the windows
  15. bind | split-window -h -c "#{pane_current_path}"
  16. bind - split-window -v -c "#{pane_current_path}"
  17. bind c new-window -c "#{pane_current_path}"
  18.  
  19. # Switch the windows
  20. bind -n C-Right next-window
  21. bind -n C-Left previous-window
  22.  
  23. # easily toggle synchronization (mnemonic: e is for echo)
  24. # sends input to all panes in a given window.
  25. bind e setw synchronize-panes on
  26. bind E setw synchronize-panes off
  27.  
  28. # Make the current window the first window
  29. bind T swap-window -t 1
  30.  
  31. # Prevent pauses in Vim, etc
  32. set -sg escape-time 0
  33.  
  34. # Longer history
  35. set -g history-limit 5000
  36.  
  37. # mouse support
  38. set -g mouse on
  39. set-option -g status on
  40. set-option -g status-interval 10
  41. set-option -g status-justify centre
  42. set-option -g status-left-length 120
  43. set-option -g status-right-length 120
  44.  
  45. set-option -g status-position bottom # position the status bar at bottom of screen
  46.  
  47. set -g default-shell $SHELL
  48.  
  49. # change the central status element colours here
  50. set-window-option -g window-status-current-format "#[fg=colour234, bg=colour145]⮀#[fg=colour234, bg=colour145] #I ⮁ #W #[fg=colour145, bg=colour234]⮀"
  51.  
  52. # default statusbar colors
  53. set-option -g status-bg colour234 #base02
  54. set-option -g status-fg colour130 #yellow
  55. set-option -g status-attr default
  56.  
  57. # default window title colors
  58. set-window-option -g window-status-fg colour8 #base0
  59. set-window-option -g window-status-bg colour234
  60. set-window-option -g window-status-attr dim
  61.  
  62. # active window title colors
  63. #set-window-option -g window-status-current-fg colour196 #orange
  64. #set-window-option -g window-status-current-bg colour234
  65. #set-window-option -g window-status-current-attr bright
  66.  
  67. # pane border
  68. set-option -g pane-border-fg colour234 #base02
  69. set-option -g pane-active-border-fg colour226 #base01
  70.  
  71. # message text
  72. set-option -g message-bg colour234 #base02
  73. set-option -g message-fg colour196 #orange
  74.  
  75. # pane number display
  76. set-option -g display-panes-active-colour colour20 #blue
  77. set-option -g display-panes-colour colour196 #orange
  78.  
  79. # clock
  80. set-window-option -g clock-mode-colour colour40 #green
  81.  
  82. # renumber windows automatically
  83. set-option -g renumber-windows on
  84.  
  85. # switch panes using Alt-arrow without prefix
  86. bind -n M-Left select-pane -L
  87. bind -n M-Right select-pane -R
  88. bind -n M-Up select-pane -U
  89. bind -n M-Down select-pane -D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement