Guest User

Untitled

a guest
Jun 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. # 0 is too far from ` ;)
  2. set -g base-index 1
  3.  
  4. # remap prefix from 'C-b' to 'C-a'
  5. unbind C-b
  6. set-option -g prefix C-a
  7. bind-key C-a send-prefix
  8.  
  9. # Automatically set window title
  10. set-window-option -g automatic-rename on
  11. set-option -g set-titles on
  12.  
  13. #set -g default-terminal screen-256color
  14. set -g status-keys vi
  15. set -g history-limit 10000
  16.  
  17. setw -g mode-keys vi
  18. set -g mouse on
  19. setw -g monitor-activity on
  20.  
  21. bind-key v split-window -h
  22. bind-key s split-window -v
  23.  
  24. bind-key J resize-pane -D 5
  25. bind-key K resize-pane -U 5
  26. bind-key H resize-pane -L 5
  27. bind-key L resize-pane -R 5
  28.  
  29. bind-key M-j resize-pane -D
  30. bind-key M-k resize-pane -U
  31. bind-key M-h resize-pane -L
  32. bind-key M-l resize-pane -R
  33.  
  34. # Vim style pane selection
  35. bind h select-pane -L
  36. bind j select-pane -D
  37. bind k select-pane -U
  38. bind l select-pane -R
  39.  
  40. # Use Alt-vim keys without prefix key to switch panes
  41. bind -n M-h select-pane -L
  42. bind -n M-j select-pane -D
  43. bind -n M-k select-pane -U
  44. bind -n M-l select-pane -R
  45.  
  46. # Use Alt-arrow keys without prefix key to switch panes
  47. bind -n M-Left select-pane -L
  48. bind -n M-Right select-pane -R
  49. bind -n M-Up select-pane -U
  50. bind -n M-Down select-pane -D
  51.  
  52. # Shift arrow to switch windows
  53. bind -n S-Left previous-window
  54. bind -n S-Right next-window
  55.  
  56. # No delay for escape key press
  57. set -sg escape-time 0
  58.  
  59. # Reload tmux config
  60. bind r source-file ~/.tmux.conf
  61.  
  62. # THEME
  63. set -g status-bg black
  64. set -g status-fg white
  65. set -g window-status-current-bg white
  66. set -g window-status-current-fg black
  67. set -g window-status-current-attr bold
  68. set -g status-interval 60
  69. set -g status-left-length 30
  70. set -g status-left '#[fg=green](#S) #(whoami)'
  71. set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
Add Comment
Please, Sign In to add comment