From 0c248e5338ea9512ea5b2e8ff6f934398845c860 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 22 May 2015 17:31:59 -0400 Subject: Add tmux configuration --- .tmux.conf | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 00000000..b7a91c9d --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,41 @@ +# Use the same prefix as screen +unbind C-b +set -g prefix C-a +bind C-a send-prefix + +# Prevent escape key delay +set -g escape-time 0 + +# Enable colors +set -g default-terminal "screen-256color" + +# Disable status bar +set -g status off + +# Start windows at 1 rather than 0 +set -g base-index 1 + +# Split windows like vim +bind s split-window -v +bind v split-window -h + +# Move between panes like vim +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Resize panes like vim +bind < resize-pane -L 1 +bind > resize-pane -R 1 +bind - resize-pane -D 1 +bind + resize-pane -U 1 + +# Vi-style controls for copy mode +setw -g mode-keys vi + +# Switch panes like C-w C-w in vim +bind C-a last-pane + +# Balance vertical panes +bind = select-layout even-horizontal -- cgit 1.4.1