Guest User

Untitled

a guest
Feb 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. # 0 is too far from ` ;)
  2. set -g base-index 1
  3.  
  4. # Automatically set window title
  5. set-window-option -g automatic-rename on
  6. set-option -g set-titles on
  7.  
  8. set -g default-terminal screen-256color
  9.  
  10. # Use vi-style key bindings for copy mode and status prompt
  11. set -g mode-keys vi
  12. set -g status-keys vi
  13.  
  14. set -g history-limit 10000
  15.  
  16. # Watch other windows for background output
  17. setw -g monitor-activity on
  18.  
  19. # Horizontal / vertical split window commands
  20. bind-key v split-window -h
  21. bind-key s split-window -v
  22.  
  23. bind-key J resize-pane -D 5
  24. bind-key K resize-pane -U 5
  25. bind-key H resize-pane -L 5
  26. bind-key L resize-pane -R 5
  27.  
  28. bind-key M-j resize-pane -D
  29. bind-key M-k resize-pane -U
  30. bind-key M-h resize-pane -L
  31. bind-key M-l resize-pane -R
  32.  
  33. # Vim style pane selection
  34. bind h select-pane -L
  35. bind j select-pane -D
  36. bind k select-pane -U
  37. bind l select-pane -R
  38.  
  39. # Use Alt-vim keys without prefix key to switch panes
  40. bind -n M-h select-pane -L
  41. bind -n M-j select-pane -D
  42. bind -n M-k select-pane -U
  43. bind -n M-l select-pane -R
  44.  
  45. # Use Alt-arrow keys without prefix key to switch panes
  46. bind -n M-Left select-pane -L
  47. bind -n M-Right select-pane -R
  48. bind -n M-Up select-pane -U
  49. bind -n M-Down select-pane -D
  50.  
  51. # Shift arrow to switch windows
  52. bind -n S-Left previous-window
  53. bind -n S-Right next-window
  54.  
  55. # No delay for escape key press
  56. set -sg escape-time 0
  57.  
  58. # Reload tmux config
  59. bind r source-file ~/.tmux.conf
  60.  
  61. # Set the layout to tiled (panes as equally distributed as possible)
  62. bind t select-layout tiled
  63.  
  64. # THEME
  65. set -g status-bg black
  66. set -g status-fg white
  67. set -g window-status-current-bg black
  68. set -g window-status-current-fg white
  69. set -g window-status-bg black
  70. set -g window-status-fg colour21
  71. set -g window-status-current-attr bold
  72. set -g status-interval 60
  73. set -g status-left-length 30
  74. set -g status-left '#[fg=colour165](#S) #(whoami) '
  75. set -g status-right '#[fg=yellow]%H:%M#[default]'
  76.  
  77. set-window-option -g xterm-keys on
  78.  
  79. set -g terminal-overrides 'xterm*:smcup@:rmcup@'
  80.  
  81. # Uppercase I spreads input keys on all active panes
  82. bind I set-window-option synchronize-panes on
  83. # Lowercase i reverts input to current pane only
  84. bind i set-window-option synchronize-panes off
  85.  
  86. # Upper M enables mouse mode, lower m disables it
  87. bind M set-option -g mouse on
  88. bind m set-option -g mouse off
  89.  
  90. # Avoid dumping trash on the terminal when copying
  91. set -s set-clipboard off
Add Comment
Please, Sign In to add comment