From ae99e2d6496bc39bfd53b73e6fbaf4c176666987 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 17 Dec 2017 13:17:27 -0600 Subject: [PATCH] .tmux.conf: Enable 24-bit truecolor support, misc tweaks --- .tmux.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 2768d93..fddef4e 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -8,7 +8,8 @@ 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 -set -sg default-term 'screen-256color' +set -sg default-term 'screen-256color' # 256-color terminal +set -ga terminal-overrides ",*256col*:Tc" # Add 24-bit truecolor support (tmux info | grep Tc) # ------------------------------------------------------------------- # Look and Feel @@ -50,7 +51,7 @@ 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 new-window +bind-key C new-window -n 'sh' -c "#{pane_current_path}" # new window starting at $PWD bind-key c new-window -n 'sh' # new window w/ default title bind-key C-c new-window -n 'sh' # (same as C-a c) bind-key C-d detach # (same as C-a d) @@ -69,8 +70,8 @@ bind-key J swap-pane -D bind-key K swap-pane -U # vim style window splitting -bind-key 's' split-window -v -bind-key 'v' split-window -h +bind-key 's' split-window -v -c "#{pane_current_path}" +bind-key 'v' split-window -h -c "#{pane_current_path}" # Shift+0-9 to select screens 10-19 bind-key ')' select-window -t :10 @@ -84,6 +85,6 @@ bind-key '&' select-window -t :17 bind-key '*' select-window -t :18 bind-key '(' select-window -t :19 -bind-key R source-file ~/.tmux.conf +bind-key R source-file ~/.tmux.conf \; display-message "Reloaded!" bind-key C-o select-pane -t :.+ # (same as C-a o) bind-key m setw monitor-activity # toggle monitor-activity -- 2.47.1