Advertisement
Guest User

.tmux.conf

a guest
Sep 27th, 2018
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. # Use ^A instead of ^B by default
  2. unbind C-b
  3. set -g prefix C-a
  4. bind C-a send-prefix
  5.  
  6. # correct terminal
  7. set -g default-terminal screen-256color
  8.  
  9. set-window-option -g mode-keys vi
  10.  
  11. # Copy to X clipboard
  12. #run-shell ~/.config/tmux/tmux-yank/yank.tmux
  13. bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
  14.  
  15.  
  16. # Toggle mouse
  17. bind-key m set-option -g mouse on \; display 'Mouse: ON'
  18. bind-key M set-option -g mouse off \; display 'Mouse: OFF'
  19.  
  20. # Some bindings to make it more comfortable
  21. bind x kill-pane
  22. bind X kill-window
  23. bind - split-window -v
  24. bind | split-window -h
  25. bind \ split-window -h
  26.  
  27. # swap panes
  28. bind-key -r J swap-pane -D
  29. bind-key -r K swap-pane -U
  30.  
  31. # Renumber windows if one is killed
  32. set-option -g renumber-windows on
  33.  
  34. # prefix+j/k to switch pane
  35. bind j select-pane -t :.+
  36. bind k select-pane -t :.-
  37.  
  38. # prefix+h/l to switch window
  39. bind l select-window -t :+
  40. bind h select-window -t :-
  41.  
  42. # remove esc delay
  43. set -s escape-time 0
  44.  
  45. # disable status bar
  46. #set -g status off
  47.  
  48.  
  49. # Start windows and panes at 1, not 0
  50. set -g base-index 1
  51. setw -g pane-base-index 1
  52.  
  53. # Statusbar
  54. set -g status-position bottom
  55. set -g status-interval 4
  56. set -g status-left ''
  57. set -g status-right ''
  58. set -g status-justify centre # center align window list
  59.  
  60. setw -g status-style ''
  61. setw -g window-status-format '#[bg=white,fg=white,bright] #I #[bg=white,fg=white,bright,reverse] #W '
  62. setw -g window-status-current-format '#[fg=white,bg=cyan] #I #[fg=cyan,bg=default] #W '
  63.  
  64. # Panel borders
  65. set -g pane-active-border-fg cyan
  66. set -g pane-active-border-bg default
  67. set -g pane-border-fg black
  68. set -g pane-border-bg default
  69.  
  70. # Window titles
  71. set -g set-titles on
  72. setw -g automatic-rename on
  73. setw -g allow-rename on
  74. set -g base-index 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement