Guest User

.tmux.conf

a guest
Aug 1st, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.23 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.  
  9.  
  10.  
  11. # use ctrl-a as default
  12. unbind C-b
  13. set -g prefix C-a
  14.  
  15.  
  16. #set -g default-terminal screen-256color
  17. set -g status-keys vi
  18. set -g history-limit 10000
  19. set -g mouse on
  20.  
  21. setw -g mode-keys vi
  22. setw -g monitor-activity on
  23.  
  24. bind-key v split-window -h
  25. bind-key s split-window -v
  26.  
  27. bind-key J resize-pane -D 5
  28. bind-key K resize-pane -U 5
  29. bind-key H resize-pane -L 5
  30. bind-key L resize-pane -R 5
  31.  
  32. bind-key M-j resize-pane -D
  33. bind-key M-k resize-pane -U
  34. bind-key M-h resize-pane -L
  35. bind-key M-l resize-pane -R
  36.  
  37. # Vim style pane selection
  38. bind h select-pane -L
  39. bind j select-pane -D
  40. bind k select-pane -U
  41. bind l select-pane -R
  42.  
  43. # Use Alt-vim keys without prefix key to switch panes
  44. bind -n M-h select-pane -L
  45. bind -n M-j select-pane -D
  46. bind -n M-k select-pane -U
  47. bind -n M-l select-pane -R
  48.  
  49. # Use Alt-arrow keys without prefix key to switch panes
  50. bind -n M-Left select-pane -L
  51. bind -n M-Right select-pane -R
  52. bind -n M-Up select-pane -U
  53. bind -n M-Down select-pane -D
  54.  
  55. # Shift arrow to switch windows
  56. bind -n S-Left  previous-window
  57. bind -n S-Right next-window
  58.  
  59. # paste configuration inside mac os
  60. # to enter into copy mode, just type ctrl-a [
  61. bind-key -T copy-mode-vi v send-keys -X begin-selection
  62. bind-key -T copy-mode-vi y send-keys -X copy-selection
  63. bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
  64.  
  65. # No delay for escape key press
  66. set -sg escape-time 0
  67.  
  68. # Reload tmux config
  69. bind r source-file ~/.tmux.conf
  70.  
  71. # window color
  72. set-window-option -g window-status-current-bg blue
  73.  
  74. # set command for clearing python shell
  75. bind-key -n C-c send-keys -t right "import os\;clear = lambda: os.system(\'clear\')\;clear()\;" \; send-keys -t right C-m
  76.  
  77. bind-key C-k kill-session
  78.  
  79. # THEME
  80. set -g status-bg black
  81. set -g status-fg white
  82. set -g window-status-current-bg white
  83. set -g window-status-current-fg black
  84. set -g window-status-current-attr bold
  85. set -g status-interval 60
  86. set -g status-left-length 30
  87. set -g status-left '#[fg=green](#S) #(whoami)'
  88. 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