alexwilsonphoto

.tmux.conf

Oct 16th, 2015 (edited)
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # Change to ctrl-a escape sequence
  2. set-option -g prefix C-a
  3. unbind-key C-b
  4. # use ctrl-t to send command to a nested tmux window
  5. bind-key -n C-t send-prefix
  6.  
  7. # 0 is too far from `
  8. set -g base-index 1
  9.  
  10. # Automatically set window title
  11. set-window-option -g automatic-rename on
  12. set-option -g set-titles on
  13.  
  14. set -g default-terminal screen-256color
  15. #set -g status-keys vi
  16. set -g history-limit 10000
  17.  
  18. setw -g mode-keys vi
  19. #setw -g mode-mouse on
  20. setw -g monitor-activity on
  21.  
  22. # Function keys (no prefix)
  23. bind-key -n F1 new-window
  24. bind-key -n F2 previous-window
  25. bind-key -n F3 next-window
  26. bind-key -n F4 confirm-before -p "kill-window #W? (y/n)" kill-window
  27. bind-key -n C-F4 kill-pane
  28. bind-key -n F5 swap-window -t -1
  29. bind-key -n F6 swap-window -t +1
  30. # zoom only works in 1.8 and later, comment out if 1.7 or earlier
  31. bind-key -n F7 resize-pane -Z
  32. bind-key -n F8 break-pane
  33. bind-key -n F9 swap-pane -U
  34. bind-key -n F10 swap-pane -D
  35. bind-key -n F11 split-window -h
  36. bind-key -n F12 split-window -v
  37.  
  38. # easier to remember splits
  39. bind-key - split-window -v
  40. bind-key | split-window -h
  41.  
  42. # Alt arrow without prefix to switch panes
  43. bind -n M-Left select-pane -L
  44. bind -n M-Right select-pane -R
  45. bind -n M-Up select-pane -U
  46. bind -n M-Down select-pane -D
  47.  
  48. # Shift arrow without prefix to resize panes
  49. bind -n C-Left resize-pane -L
  50. bind -n C-Right resize-pane -R
  51. bind -n C-Up resize-pane -U
  52. bind -n C-Down resize-pane -D
  53.  
  54. # No delay for escape key press
  55. set -sg escape-time 0
  56.  
  57. # Reload tmux config
  58. bind r source-file ~/.tmux.conf
  59.  
  60. # Copy/paste
  61. bind-key -T copy-mode-vi 'Space' send -X begin-selection
  62. bind-key -T copy-mode-vi 'Enter' send -X copy-selection
  63. bind b save-buffer ~/tmux.buffer
  64.  
  65. # THEME
  66. set -g status-bg colour17
  67. set -g status-fg white
  68. set -g window-status-current-bg white
  69. set -g window-status-current-fg black
  70. set -g window-status-current-attr bold
  71. set -g status-interval 60
  72. set -g status-left-length 40
  73. set -g status-left '#[fg=green](#S) #(uname -s) #H '
  74. set -g status-right '#[fg=green]#(cut -d " " -f 1-4 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Add Comment
Please, Sign In to add comment