1 # -------------------------------------------------------------------
 
   3 # -------------------------------------------------------------------
 
   4 setw -g utf8 on                        # use UTF-8
 
   5 set -g history-limit 15000             # increase scrollback lines
 
   6 set -g default-command 'bash'          # no login shell
 
   7 set -g renumber-windows on             # renumber windows sequentially after closing any of them
 
   8 setw -g monitor-activity on            # monitor for activity in windows
 
   9 set -g visual-activity on              # display status line message for windows with activity (monitor-activity)
 
  10 set -g aggressive-resize on            # smart window resizing when multiple attached clients
 
  11 set -sg escape-time 50                 # shorter Esc/Alt disambiguation timeout
 
  13 # update program titlebar caption
 
  15 set -g set-titles-string '[#S:#I.#P #H] #W'
 
  19 set -g status-style none
 
  20 set -g status-right '#[fg=blue]#(whoami)@#h (#S:#I.#P)'
 
  21 setw -g window-status-style 'fg=brightblack'
 
  22 setw -g window-status-current-style 'bg=brightblack,bold,fg=brightwhite'
 
  24 # -------------------------------------------------------------------
 
  26 # -------------------------------------------------------------------
 
  30 bind-key a send-prefix
 
  31 bind-key A command-prompt "rename-window %%"
 
  32 bind-key C-a last-window
 
  33 bind-key C-c new-window         # same as C-a c
 
  34 bind-key C-d detach             # same as C-a d
 
  35 bind-key C-n next-window        # same as C-a n
 
  36 bind-key C-p previous-window    # same as C-a p
 
  37 bind-key Escape copy-mode
 
  42 bind-key h select-pane -L
 
  43 bind-key j select-pane -D
 
  44 bind-key k select-pane -U
 
  45 bind-key l select-pane -R
 
  46 bind-key -r C-j resize-pane -D 1
 
  47 bind-key -r C-k resize-pane -U 1
 
  48 bind-key -r C-h resize-pane -L 1
 
  49 bind-key -r C-l resize-pane -R 1
 
  51 # intuitive window splitting
 
  52 bind | split-window -h
 
  53 bind \ split-window -h
 
  54 bind - split-window -v
 
  56 bind R source-file ~/.tmux.conf