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 'screen-256color'
   6 
   7 # Binds {{{
   8 
   9 set -g mouse on
  10 bind -T root MouseDown2Pane paste-buffer
  11 
  12 set -g prefix C-a
  13 set -g escape-time 0
  14 
  15 bind q kill-pane
  16 bind Q kill-window
  17 
  18 bind a choose-tree
  19 bind C-a select-pane -t :.+
  20 
  21 bind T break-pane
  22 bind C-n new-window
  23 
  24 bind s split-window -vc '#{pane_current_path}'
  25 bind v split-window -hc '#{pane_current_path}'
  26 
  27 bind m choose-window 'move-pane -t "%%"'
  28 bind M choose-session 'move-window -t "%%:"'
  29 
  30 bind n command-prompt -I '#W' 'rename-window "%%"'
  31 bind N command-prompt -I '#S' 'rename-session "%%"'
  32 
  33 bind -r S-Up swap-pane -U
  34 bind -r S-Down swap-pane -D
  35 bind -r S-Left swap-pane -U
  36 bind -r S-Right swap-pane -D
  37 
  38 # }}}
  39 # Colors {{{
  40 
  41 set -g pane-border-fg colour8
  42 set -g pane-active-border-fg colour7
  43 
  44 set -g status-bg default
  45 set -g status-fg colour7
  46 set -g window-status-current-fg colour15
  47 
  48 set -g message-bg default
  49 set -g message-fg colour15
  50 
  51 # }}}
  52 # Statusline {{{
  53 
  54 set -g base-index 1
  55 set -g pane-base-index 1
  56 set -g renumber-windows on
  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 # }}}