From 0c1f463ccd310f0f428a623219d104cacf2c87ac Mon Sep 17 00:00:00 2001 From: Bas van den Wollenberg Date: Fri, 23 Aug 2024 06:38:36 +0200 Subject: [PATCH] Set TERM correctly (I think) and open new panes in same directory --- tmux/.tmux.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f305464..a649660 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -2,7 +2,8 @@ set -g default-command "${SHELL}" # color support -set -g default-terminal 'xterm-256color' +set -g default-terminal 'tmux-256color' +set -ga terminal-overrides ',xterm-256color:RGB' set -ga terminal-overrides ',xterm-256color:Tc' # get rid of esc delay @@ -39,6 +40,11 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-cop bind -T copy-mode-vi i send-keys -X cancel bind -T copy-mode-vi Escape send-keys -X cancel +# open new panes in the same directory as the current pane +# (braces to appease the tmux tree-sitter parser) +bind % { split-window -h -c "#{pane_current_path}" } +bind '"' { split-window -v -c "#{pane_current_path}" } +# bind c { new-window -c "#{pane_current_path}" } # plugins -- 2.51.2