[download]

tmux.conf

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