From 60477fd8962d954ef220384540d6dfa34551ffa9 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Sat, 6 May 2023 15:08:41 +0200 Subject: [PATCH] tmux: fix color in some terminals, split pane in the same directory --- etc/tmux.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/tmux.conf b/etc/tmux.conf index e7767cf..68eca67 100644 --- a/etc/tmux.conf +++ b/etc/tmux.conf @@ -15,8 +15,10 @@ unbind-key % unbind-key '"' unbind-key / unbind-key - -bind-key / split-window -h -bind-key - split-window -v + +# split in the same directory as the source pane +bind-key / split-window -h -c "#{pane_current_path}" +bind-key - split-window -v -c "#{pane_current_path}" # ┌─────────────┐ # │ Misc config │ @@ -36,7 +38,7 @@ set-option -g allow-rename on set-option -g alternate-screen off # True color -set-option -ga terminal-overrides ",xterm-256color:Tc" +set-option -ga terminal-overrides ",xterm*:Tc" # waiting for escape sequences introduces delays in vim/kak/hx set-option -s escape-time 0