tmux.conf

   1 set -g set-titles on
   2 set -g set-titles-string '#T'
   3 
   4 set -g history-limit 10000
   5 set -g default-terminal 'xterm'
   6 
   7 set -g base-index 1
   8 set -g pane-base-index 1
   9 set -g renumber-windows on
  10 
  11 # Keys {{{
  12 
  13 set -g mouse on
  14 bind -T root MouseDown2Pane paste-buffer
  15 
  16 set -g prefix C-a
  17 set -g escape-time 0
  18 
  19 bind q kill-pane
  20 bind Q kill-window
  21 
  22 bind a choose-tree
  23 bind C-a select-pane -t :.+
  24 
  25 bind T break-pane
  26 bind C-n new-window
  27 
  28 bind s split-window -vc '#{pane_current_path}'
  29 bind v split-window -hc '#{pane_current_path}'
  30 
  31 bind m choose-window 'move-pane -t "%%"'
  32 bind M choose-session 'move-window -t "%%:"'
  33 
  34 bind n command-prompt -I '#W' 'rename-window "%%"'
  35 bind N command-prompt -I '#S' 'rename-session "%%"'
  36 
  37 bind -r S-Up swap-pane -U
  38 bind -r S-Down swap-pane -D
  39 bind -r S-Left swap-pane -U
  40 bind -r S-Right swap-pane -D
  41 
  42 # }}}
  43 # Colors {{{
  44 
  45 set -g pane-border-fg colour8
  46 set -g pane-active-border-fg colour7
  47 
  48 set -g status-bg default
  49 set -g status-fg colour7
  50 set -g window-status-current-fg colour15
  51 
  52 set -g message-bg default
  53 set -g message-fg colour15
  54 
  55 # }}}
  56 # Statusline {{{
  57 
  58 set -g status-left ''
  59 set -g status-right '#{?client_prefix,#[fg=colour15 reverse],} #(echo $USER)@#H '
  60 
  61 set -g status-justify right
  62 set -g window-status-current-format '#I:#W '
  63 
  64 # }}}