Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 24th, 2013  |  syntax: None  |  size: 3.29 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # change prefix to Ctrl-a (like in gnu-screen)
  2. unbind C-b
  3. set-option -g prefix C-a
  4. bind-key C-a send-prefix
  5.  
  6. # Terminal emulator window title
  7. setw -g automatic-rename on
  8. set-option -g set-titles on
  9. set-option -g set-titles-string 'tmux: #W'
  10.  
  11. # shell
  12. set -g default-command /bin/zsh
  13. set -g default-shell /bin/zsh
  14.  
  15.  
  16. # start with window 1 (instead of 0)
  17. set -g base-index 1
  18.  
  19.  
  20. # start with pane 1
  21. set -g pane-base-index 1
  22.  
  23.  
  24. # screen mode
  25. set -g default-terminal "screen-256color"
  26.  
  27.  
  28. # source config file
  29. bind r source-file ~/.tmux.conf
  30.  
  31.  
  32. # history
  33. set -g history-limit 4096
  34.  
  35.  
  36. # allow terminal scrolling
  37. set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
  38.  
  39.  
  40. # copy mode
  41. #unbind [
  42. #bind Escape copy-mode
  43. #unbind ]
  44. bind ] paste-buffer
  45.  
  46.  
  47. # use vi mode
  48. #setw -g mode-keys vi
  49. #set -g status-keys vi
  50. #setw -g utf8 on
  51. # use mouse in copy mode
  52. setw -g mode-mouse on
  53.  
  54.  
  55. # tmux-zoom.sh
  56. bind C-z run "tmux-zoom.sh"
  57.  
  58.  
  59. # splitting
  60. unbind %
  61. bind h split-window -h
  62. unbind '"'
  63. bind v split-window -v
  64.  
  65.  
  66. # window switching
  67. #urxvt tab like window switching (-n: no prior escape seq)
  68. bind-key -n S-left prev
  69. bind-key -n S-right next
  70. bind-key -n C-left swap-window -t -1
  71. bind-key -n C-right swap-window -t +1
  72. # with mouse (click on pretty little boxes)
  73. set -g mouse-select-window on
  74.  
  75.  
  76. # colon :
  77. bind : command-prompt
  78.  
  79.  
  80. # panes
  81. set -g mouse-select-pane on
  82. set -g pane-border-fg black
  83. set -g pane-active-border-fg brightblack
  84. set -g mouse-select-pane on
  85. set -g mouse-resize-pane on
  86.  
  87.  
  88. # status line
  89. set -g status-utf8 on
  90. set -g status-justify left
  91. set -g status-bg default
  92. set -g status-fg colour12
  93. set -g status-interval 2
  94.  
  95. # messaging
  96. set -g message-bg brightblack
  97. set -g message-fg white
  98.  
  99. # window status
  100. #setw -g window-status-format " #F#I:#W#F "
  101. #setw -g window-status-current-format " #F#I:#W#F "
  102. setw -g window-status-format "#[bg=brightblack,fg=black] #I #[bg=black,fg=brightblack]⮀ #W "
  103. setw -g window-status-current-format "#[bg=blue,fg=black] #I #[bg=brightblack,fg=blue]⮀#[bg=brightblack,fg=white] #W "
  104.  
  105. # Info on right
  106. set -g status-right-length 30
  107. set -g status-right ''
  108. # '#[fg=magenta]#(cut -d " " -f 1-3 /proc/loadavg) #[fg=colour8]// #[fg=cyan]Tmux [#S]'
  109. # Info on left (no session display)
  110. set -g status-left ''
  111.  
  112.  
  113. # loud or quiet?
  114. set-option -g visual-activity off
  115. set-window-option -g monitor-activity off
  116.  
  117. # tmux clock
  118. set-window-option -g clock-mode-colour green
  119. set-window-option -g clock-mode-style 24
  120.  
  121. # some key-binding changes
  122. bind x kill-pane
  123. bind X next-layout
  124. bind Z previous-layout
  125. #unbind Left
  126. #bind C-Left resize-pane -L 2
  127. #bind h select-pane -L
  128. #unbind Down
  129. #bind C-Down resize-pane -D 2
  130. #bind j select-pane -D
  131. #unbind Up
  132. #bind C-Up resize-pane -U 2
  133. #bind k select-pane -U
  134. #unbind Right
  135. #bind C-Right resize-pane -R 2
  136. #bind l select-pane -R
  137. #unbind C-Left
  138. #bind C-h resize-pane -L 1
  139. #unbind C-Down
  140. #bind C-j resize-pane -D 1
  141. #unbind C-Up
  142. #bind C-k resize-pane -U 1
  143. #unbind C-Right
  144. #bind C-l resize-pane -R 1
  145. #unbind M-Left
  146. #bind C-H resize-pane -L 30
  147. #unbind M-Down
  148. #bind C-J resize-pane -D 30
  149. #unbind M-Up
  150. #bind C-K resize-pane -U 30
  151. #unbind M-Right
  152. #bind C-L resize-pane -R 30
  153.  
  154. # default sessions - need to use 'tmux attach'
  155. #new-session weechat
  156. #new-window rtorrent
  157. #new-window mutt
  158. #new-window zsh
clone this paste RAW Paste Data