Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. set -g default-terminal "screen-256color"
  2. set -g history-limit 100000
  3.  
  4. # use VI
  5. set-window-option -g mode-keys vi
  6. set -g mode-keys vi
  7.  
  8. # Use ctrl-e instead of ctrl-b
  9. set -g prefix C-e
  10. unbind C-b
  11. bind C-e send-prefix
  12.  
  13. unbind C-f
  14. bind C-f command-prompt "switch-client -t %%"
  15.  
  16. # kill
  17. unbind k
  18. bind k confirm-before "kill-window"
  19.  
  20. unbind ^x
  21. bind ^x kill-pane
  22.  
  23. # reload config
  24. unbind r
  25. bind r source-file ~/.tmux.conf
  26.  
  27. unbind ^W
  28. bind ^W split-window -p 25 'vim' \; swap-pane -D
  29. unbind ^T
  30. bind ^T split-window -p 25
  31.  
  32. # tile all windows
  33. unbind =
  34. bind = select-layout tiled
  35.  
  36. # resize panes
  37. unbind +
  38. bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
  39. unbind -
  40. bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
  41.  
  42. # status bar
  43. set -g status-bg black
  44. set -g status-fg white
  45. set -g status-interval 1
  46.  
  47. set -g status-left ' '
  48. set -g status-right '#[fg=yellow]%Y-%m-%d %H:%M#[default] '
  49.  
  50. set-window-option -g window-status-current-bg yellow
  51. set-window-option -g window-status-current-fg black
  52.  
  53. set -g mouse-select-pane on
  54. set -g mouse-select-window on
  55. set -g mouse-resize-pane on
  56. set -g mode-mouse on
  57.  
  58. # Pane mappings (Will work with Mac only if option key is meta, see readme)
  59.  
  60. set -sg escape-time 0
  61.  
  62. bind -n M-h select-pane -L
  63. bind -n M-j select-pane -D
  64. bind -n M-k select-pane -U
  65. bind -n M-l select-pane -R
  66.  
  67. bind -n M-\ split-window -h
  68. bind -n M-- split-window -v
  69.  
  70. bind-key -nr M-Up resize-pane -U
  71. bind-key -nr M-Down resize-pane -D
  72. bind-key -nr M-Left resize-pane -L
  73. bind-key -nr M-Right resize-pane -R
  74.  
  75. bind-key -n M-PPage copy-mode -u
  76.  
  77. bind-key -n M-u copy-mode
  78. bind-key -n M-i paste-buffer
  79.  
  80. bind-key -n M-d detach-client
  81.  
  82. bind-key -n M-8 choose-session
  83. bind-key -n M-9 switch-client -p
  84. bind-key -n M-0 switch-client -n
  85.  
  86. # Tab titles
  87.  
  88. setw -g monitor-activity on
  89. set -g visual-activity on
  90.  
  91. set -g set-titles on
  92. set -g set-titles-string '#S: #W'
  93. setw -g automatic-rename
  94.  
  95. #Cycle through panes by pressing ctrl+E twice
  96.  
  97. unbind ^E
  98. bind ^E select-pane -t :.+
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement