Skip to content
Browse files

Update .tmux.conf with suggestions from github.com/kristjan/.dotfiles

  • Loading branch information...
1 parent f01246e commit 1f1ac974d9b6ef918a134d54ce34ee1ec29b7278 @derwiki committed
Showing with 45 additions and 12 deletions.
  1. +45 −12 .tmux.conf
View
57 .tmux.conf
@@ -1,18 +1,51 @@
-new
-set -g escape-time 0
-set -g mode-mouse on
-set -g mouse-select-pane on
-set -g mouse-select-window on
-set -g main-pane-width 82
+# allow ctrl-{left,right} to move words on the command line
+set-window-option xterm-keys
+
+set -g main-pane-width 81
+
+# tabs start at 1
set -g base-index 1
+
+# fancy status bar
set -g terminal-overrides "*:XT:Ms=\\E]52;%p1%s;%p2%s\\007:Cc=\\E]12;%p1%s\\007:Cr=\\E]112\\007:Cs=\\E[%p1%d q:Csr=\\E[2 q"
-set -g mode-keys vi
-set -g xterm-keys
+# Use vi keys in copy mode
+set-window-option -g mode-keys vi
-# for multiple connected clients with different terminal sizes
-setw -g aggressive-resize on
+# Number windows starting from 1
+set -g base-index 1
-# allow ctrl-{left,right} to move words on the command line
-set-window-option xterm-keys
+# Don't constrain minimum pane size to the smallest client connected
+set-window-option -g aggressive-resize on
+
+# Splits
+unbind %
+bind - split-window -v
+bind | split-window -h
+
+# Movement
+bind -r h select-pane -L
+bind -r l select-pane -R
+bind -r j select-pane -D
+bind -r k select-pane -U
+
+# Sizing
+bind -r H resize-pane -L 5
+bind -r L resize-pane -R 5
+bind -r J resize-pane -D 5
+bind -r K resize-pane -U 5
+
+# Reload config
+bind t source-file ~/.tmux.conf
+
+# Status bar
+set-option -g status-bg colour234
+set-option -g status-fg white
+set-option -g status-left ' '
+set-option -g status-right '#[bg=white,fg=black] #S '
+set-window-option -g window-status-current-bg colour234
+set-window-option -g window-status-current-fg colour34
+# Mouse
+set-option -g mouse-select-pane off
+set-window-option -g mode-mouse off

0 comments on commit 1f1ac97

Please sign in to comment.
Something went wrong with that request. Please try again.