Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. ###########################################################################
  2. # General options
  3.  
  4. # Default termtype. If the rcfile sets $TERM, that overrides this value.
  5. #set -g default-terminal screen-256color
  6.  
  7. # Ring the bell if any background window rang a bell
  8. set -g bell-action any
  9.  
  10. # Watch for activity in background windows
  11. setw -g monitor-activity on
  12.  
  13. # scrollback size
  14. set -g history-limit 10000
  15.  
  16. # set first window to index 1 (not 0) to map more to the keyboard layout
  17. set -g base-index 1
  18. setw -g pane-base-index 1
  19.  
  20. # reload tmux config
  21. unbind r
  22. bind r \
  23. source-file ~/.tmux.conf \;\
  24. display 'Reloaded tmux config.'
  25.  
  26. # Use vi keybindings for tmux commandline input.
  27. # Note that to get command mode you need to hit ESC twice...
  28.  
  29. # Use vi keybindings in copy and choice modes
  30. setw -g mode-keys vi
  31.  
  32. ###########################################################################
  33.  
  34. # Pane management / navigation
  35.  
  36. # Remap window navigation to vim
  37. unbind-key j
  38. bind-key j select-pane -D
  39. unbind-key k
  40. bind-key k select-pane -U
  41. unbind-key h
  42. bind-key h select-pane -L
  43. unbind-key l
  44. bind-key l select-pane -R
  45.  
  46. # easily toggle synchronization (mnemonic: e is for echo)
  47. # sends input to all panes in a given window.
  48. bind e setw synchronize-panes on
  49. bind E setw synchronize-panes off
  50.  
  51. ###########################################################################
  52.  
  53. # Scrollback / pastebuffer
  54.  
  55. # Vim-style copy/paste
  56. unbind [
  57. bind y copy-mode
  58. unbind p
  59. bind p paste-buffer
  60. bind -t vi-copy v begin-selection
  61. bind -t vi-copy y copy-selection
  62. bind -t vi-copy Escape cancel
  63.  
  64. ###########################################################################
  65. # Mouse mode
  66.  
  67. set -g mode-mouse on
  68. set -g mouse-resize-pane on
  69. set -g mouse-select-pane on
  70. set -g mouse-select-window on
  71.  
  72. # Toggle mouse on
  73. bind m \
  74. set -g mode-mouse on \;\
  75. set -g mouse-resize-pane on \;\
  76. set -g mouse-select-pane on \;\
  77. set -g mouse-select-window on \;\
  78. display 'Mouse: ON'
  79.  
  80. # Toggle mouse off
  81. bind M \
  82. set -g mode-mouse off \;\
  83. set -g mouse-resize-pane off \;\
  84. set -g mouse-select-pane off \;\
  85. set -g mouse-select-window off \;\
  86. display 'Mouse: OFF'
  87. ##################################################
  88.  
  89. set status-bg default
  90. set status-fg colour14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement