From 6d6b48693962da5d26e940501ec57af7c78447ed Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Tue, 30 Apr 2013 15:58:31 -0400 Subject: [PATCH] tmux conf file --- .aliases | 1 + .tmux.conf | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .tmux.conf diff --git a/.aliases b/.aliases index adb25aa..6ab6095 100644 --- a/.aliases +++ b/.aliases @@ -10,4 +10,5 @@ alias grm="git rm" alias gs="git status" alias l="ls -lvh --color=auto" alias s="cd ~/Source" +alias t="tmux" alias v="vim" diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..d7d39a4 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,55 @@ +# for setting up +bind-key r source-file ~/.tmux.conf; display-message " ✱ ~/.tmux.conf is reloaded" + +# ctrl-b is annoying +set-option -g prefix C-a + +# double tap for back and forth +bind-key C-a last-window + +# close window +bind q confirm kill-window + +# 0 is way over there +set-option -g base-index 1 +setw -g pane-base-index 1 + +# 256 colors (bce matches whatever I am doing with t_Co=256 in vim) +set -g default-terminal "screen-256color-bce" + +# hostry should be longer +set -g history-limit 10000 + +# no autorename +set -g automatic-rename off + +# activity stuff +set-window-option -g monitor-activity off + +# copy mode stuff +set-window-option -g mode-mouse on # mouse can enable (danger zone, maybe?) +set-window-option -g mode-keys vi # emulate vim movement in copy mode + +# be more like vim +bind s split-window -h # horizontal window split +bind v split-window -v # vertical window split + +bind h select-pane -L # left pane +bind j select-pane -D # bottom pane +bind k select-pane -U # top pane +bind l select-pane -R # right pane + +bind < resize-pane -L 10 +bind > resize-pane -R 10 +bind - resize-pane -D 10 +bind + resize-pane -U 10 + +# status bar stuff +set -g status on +set -g status-bg colour236 +set -g status-fg white +set -g status-left '#[fg=green]#H' +set-window-option -g window-status-current-bg white +set-window-option -g window-status-current-fg black +set-option -g status-right '%d %b %Y @ %k:%M' +