From fa5371cdb1f53f2f005a7db8a88bfd998a1638b5 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 4 Feb 2017 17:30:55 -0500 Subject: tmux tweaks --- tmux.conf | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/tmux.conf b/tmux.conf index a0154b3..97ed188 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,21 +1,33 @@ # vi bindings -set-option -g status-keys vi -set-window-option -g mode-keys vi +set -g status-keys vi +setw -g mode-keys vi -set-window-option -g window-status-current-attr bright +# reasonable history buffer +set -g history-limit 10000 + +# status line +setw -g window-status-current-attr bright set -g status-right '#(date "+%H:%M %Z %Y-%m-%d")' set -g status-bg white set -g status-left " #S@#h " set -g status-left-length 15 set -g status-left-bg green set -g status-left-fg white + +# ui set -g set-titles on set -g default-terminal "screen-256color" -set-option -ga terminal-overrides ",xterm-256color:Tc" +set -ga terminal-overrides ",xterm-256color:Tc" +set -g pane-border-fg white + +# splits +bind | split-window -h +bind \ split-window -h +bind - split-window -v # reversed to match vim split names -bind-key v select-layout even-horizontal -bind-key h select-layout even-vertical +bind v select-layout even-horizontal +bind h select-layout even-vertical # vim-style resize bind -r H resize-pane -L 2 @@ -24,12 +36,12 @@ bind -r K resize-pane -U 2 bind -r L resize-pane -R 2 # vim-style move -bind -r h select-pane -L -bind -r j select-pane -D -bind -r k select-pane -U -bind -r l select-pane -R +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R -# bound arrow keys are annoying +# unbind arrow keys unbind Up unbind Down unbind Left @@ -42,6 +54,3 @@ unbind C-Up unbind C-Down unbind C-Left unbind C-Right - -# reasonable history buffer -set -g history-limit 10000 -- cgit v1.2.3