Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. set -g prefix C-a
  2. unbind C-b
  3. bind C-a send-prefix
  4.  
  5. set -g mode-keys vi
  6. set -g default-terminal "screen-256color"
  7. set -g history-limit 10000
  8. set -g mouse on
  9. set -g set-titles on
  10. set -g set-titles-string "#H:#S.#I.#P #W #T"
  11. set-window-option -g monitor-activity on
  12. set -sg escape-time 0
  13.  
  14. ## move keys
  15. bind h select-pane -L
  16. bind j select-pane -D
  17. bind k select-pane -U
  18. bind l select-pane -R
  19.  
  20. ## Switch windows
  21. bind C-j previous-window
  22. bind C-k next-window
  23.  
  24. ## move to a window
  25. bind -r C-h select-window -t :-
  26. bind -r C-l select-window -t :+
  27.  
  28. ## splits
  29. bind | split-window -h
  30. bind - split-window -v
  31. unbind '"'
  32. unbind %
  33.  
  34. ## resize panes
  35. setw -g aggressive-resize on
  36. bind -r H resize-pane -L 5
  37. bind -r J resize-pane -D 5
  38. bind -r K resize-pane -U 5
  39. bind -r L resize-pane -R 5
  40.  
  41. ## copy n paste
  42. bind Escape copy-mode
  43. unbind p
  44. bind p paste-buffer
  45. bind-key -T copy-mode-vi 'v' send -X begin-selection
  46. bind-key -T copy-mode-vi 'y' send -X copy-selection
  47. bind-key -T copy-mode-vi 'Space' send -X halfpage-down
  48. bind-key -T copy-mode-vi 'Bspace' send -X halfpage-up
  49.  
  50. unbind r
  51. bind r source-file ~/.tmux.conf \; display-message "tmux.conf sourced"
  52.  
  53. # colors
  54.  
  55. setw -g mode-style 'fg=colour51 bg=colour23 '
  56. setw -g clock-mode-colour colour5
  57. set -g message-style 'fg=colour51 bg=colour0'
  58.  
  59. set -g pane-border-style 'fg=colour51 bg=colour0'
  60. set -g pane-active-border-style 'fg=colour10 bg=colour0'
  61.  
  62. set -g status-style 'fg=colour51 bg=colour0'
  63. set -g status-left-length 21
  64. set -g status-right-length 50
  65.  
  66. set-option -g status-left '#[fg=colour231] Session #S ❮#[fg=colour205]#I#[fg=colour231]❯ #[fg=magenta] #[fg=magenta,bold]'
  67. set -g status-right '#[fg=colour231]%R #[fg=colour28] #{client_width}x#{client_height} '
  68.  
  69. set-window-option -g window-status-style 'fg=colour51 bg=colour0'
  70. set-window-option -g window-status-current-style 'fg=magenta bg=black'
  71.  
  72. setw -g window-status-current-format '#[fg=colour202]#W#[fg=colour202]-#[fg=colour202]#I '
  73. setw -g window-status-format ' #[fg=colour231]#W#[fg=colour231]-#[fg=colour231]#I '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement