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 # Keys {{{
   8 
   9 set -g mouse on
  10 set -g mouse-utf8 off
  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 -u
  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-fg colour8
  43 set -g pane-active-border-fg colour7
  44 
  45 set -g status-bg default
  46 set -g status-fg colour7
  47 set -g window-status-current-fg colour15
  48 
  49 set -g message-bg default
  50 set -g message-fg colour15
  51 
  52 # }}}
  53 # Statusline {{{
  54 
  55 set -g base-index 1
  56 set -g pane-base-index 1
  57 set -g renumber-windows on
  58 
  59 set -g status-left ''
  60 set -g status-right '#{?client_prefix,#[fg=colour15 reverse],} #(echo $USER)@#H '
  61 
  62 set -g status-justify right
  63 set -g window-status-current-format '#I:#W+'
  64 
  65 # }}}
  66