Guest User

Untitled

a guest
Sep 25th, 2014
1,453
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########################
  2. # Initialization
  3. ###########################
  4.  
  5. # Unbind all keys
  6. #unbind-key -a
  7.  
  8. ###########################
  9. # General
  10. ###########################
  11.  
  12. # Set prefix to M-e
  13. set -g prefix M-e
  14. unbind M-e ; bind M-e send-prefix
  15.  
  16. # Set general options
  17. set -g mode-keys vi # vi keybindings for movement
  18. set -g status-keys vi # vi keybindings for movement
  19. set -g base-index 1 # base window index (default 0)
  20. set -g pane-base-index 1 # base pane index (default 0)
  21. set -g history-limit 100000 # increase history size
  22. set -g default-terminal "screen-256color" # 256 color terminal
  23. set -g renumber-windows on # Renumber windows
  24.  
  25. # Set ability to capture on start and restore on exit window data when running an application
  26. setw -g alternate-screen on
  27.  
  28. # Server options
  29. set -sg escape-time 10
  30.  
  31. # Window title
  32. set -g set-titles on
  33. set -g set-titles-string '[#S] #I:#W'
  34.  
  35. # Set window options
  36. setw -g aggressive-resize on # Resize window to active viewer
  37.  
  38. ###########################
  39. # Status Bar
  40. ###########################
  41.  
  42. set -g status-utf8 on # enable UTF-8 support in status bar
  43. set -g status-interval 30 # set refresh interval for status bar
  44. set -g status-justify left # left justify status bar
  45. set -g status-left-length 40 #
  46.  
  47. # show session, window, pane in left status bar
  48. set -g status-left '#[fg=green]#S#[fg=blue] #I:#P#[default]'
  49.  
  50. # show hostname, date, time, and battery in right status bar
  51. set -g status-right '#[fg=blue]#H#[default] %Y-%m-%d %H:%M '
  52.  
  53. set -g terminal-overrides 'xterm*:smcup@:rmcup@'
  54.  
  55. ###########################
  56. # Colors
  57. ###########################
  58.  
  59. # color status bar
  60. set -g status-bg colour235
  61. set -g status-fg white
  62.  
  63. # set color of active pane
  64. set -g pane-border-fg colour235
  65. set -g pane-border-bg black
  66. set -g pane-active-border-fg green
  67. set -g pane-active-border-bg black
  68.  
  69. # highlight current window
  70. setw -g window-status-current-fg black
  71. setw -g window-status-current-bg green
  72.  
  73. setw -g automatic-rename on
  74.  
  75. ###########################
  76. # Key bindings
  77. ###########################
  78.  
  79. unbind M-l ; bind M-l list-panes
  80. unbind M-r ; bind M-r source-file ~/.tmux.conf
  81. unbind M-c ; bind M-c new-window
  82. unbind M-d ; bind M-d detach-client
  83. unbind M-h ; bind M-h select-layout even-horizontal
  84. unbind M-v ; bind M-v select-layout even-vertical
  85. unbind M-t ; bind M-t select-layout tiled
  86. unbind M-n ; bind M-n select-layout main-vertical
  87. unbind M-m ; bind M-m select-layout main-horizontal
  88. unbind Space ; bind Space copy-mode
  89.  
  90. bind -n M-n next
  91. bind -n M-p prev
  92. bind -n M-z resize-pane -Z
  93. bind -n M-, split-window -v
  94. bind -n M-. split-window -h
  95.  
  96. # Pane switching: vi style
  97. bind -n M-h select-pane -L
  98. bind -n M-j select-pane -D
  99. bind -n M-k select-pane -U
  100. bind -n M-l select-pane -R
  101.  
  102. # Pane switching: arrows
  103. bind -n M-Left select-pane -L
  104. bind -n M-Down select-pane -D
  105. bind -n M-Up select-pane -U
  106. bind -n M-Right select-pane -R
  107.  
  108. # Shift arrow to switch windows
  109. bind -n S-Left previous-window
  110. bind -n S-Right next-window
  111.  
  112. # Make vi mode behave more like vi
  113. bind -t vi-copy 'v' begin-selection
  114. bind -t vi-copy 'y' copy-selection
  115. bind -t vi-copy Home start-of-line
  116. bind -t vi-copy End end-of-line
  117. bind -t vi-copy Escape cancel
  118. bind -t vi-copy q cancel
  119.  
  120. # Enter copy mode and scroll one page up with Alt-PageUp
  121. bind -n M-PPage copy-mode -u
  122.  
  123. ###########################
  124. # Mouse
  125. ###########################
  126.  
  127. set -g mode-mouse off
  128. set -g mouse-resize-pane off
  129. set -g mouse-select-pane off
  130. set -g mouse-select-window off
  131.  
  132. ## Toggle mouse mode on
  133. bind M-r \
  134. set -g mode-mouse on \;\
  135. set -g mouse-resize-pane on \;\
  136. set -g mouse-select-pane on \;\
  137. set -g mouse-select-window on \;\
  138. #
  139. ## Toggle mouse mode off
  140. bind M-w \
  141. set -g mode-mouse off \;\
  142. set -g mouse-resize-pane off \;\
  143. set -g mouse-select-pane off \;\
  144. set -g mouse-select-window off \;\
  145.  
  146. # Enable Shift-PgUp/PgDown for scrolling
  147. #set -g terminal-overrides 'xterm*:smcup@:rmcup@'
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×