From 4ac119daa40ffe6c2f17d23ab1fa44225485c4e7 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Mon, 11 Aug 2014 22:07:02 -0500 Subject: [PATCH] .tmux.conf: Initial commit --- .tmux.conf | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..982420b --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,56 @@ +# ------------------------------------------------------------------- +# Settings +# ------------------------------------------------------------------- +setw -g utf8 on # use UTF-8 +set -g history-limit 15000 # increase scrollback lines +set -g default-command 'bash' # no login shell +set -g renumber-windows on # renumber windows sequentially after closing any of them +setw -g monitor-activity on # monitor for activity in windows +set -g visual-activity on # display status line message for windows with activity (monitor-activity) +set -g aggressive-resize on # smart window resizing when multiple attached clients +set -sg escape-time 50 # shorter Esc/Alt disambiguation timeout + +# update program titlebar caption +set -g set-titles on +set -g set-titles-string '[#S:#I.#P #H] #W' + +# status bar +set -g status-utf8 on +set -g status-style none +set -g status-right '#[fg=blue]#(whoami)@#h (#S:#I.#P)' +setw -g window-status-style 'fg=brightblack' +setw -g window-status-current-style 'bg=brightblack,bold,fg=brightwhite' + +# ------------------------------------------------------------------- +# Key Bindings +# ------------------------------------------------------------------- +# act like GNU screen +unbind C-b +set -g prefix C-a +bind-key a send-prefix +bind-key A command-prompt "rename-window %%" +bind-key C-a last-window +bind-key C-c new-window # same as C-a c +bind-key C-d detach # same as C-a d +bind-key C-n next-window # same as C-a n +bind-key C-p previous-window # same as C-a p +bind-key Escape copy-mode +unbind Space + +# vim style movement +setw -g mode-keys vi +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R +bind-key -r C-j resize-pane -D 1 +bind-key -r C-k resize-pane -U 1 +bind-key -r C-h resize-pane -L 1 +bind-key -r C-l resize-pane -R 1 + +# intuitive window splitting +bind | split-window -h +bind \ split-window -h +bind - split-window -v + +bind R source-file ~/.tmux.conf -- 2.45.2