From 174bb842e9e500d5a2808881ffec7996761c89eb Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 8 Jan 2025 18:10:03 +0200 Subject: [PATCH] chore(config): tmux config tweaks --- config/tmux/tmux.conf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 8437ebf..236f54e 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -92,12 +92,19 @@ bind p paste-buffer # ╭──────────────────────────────────────────────────────────╮ # │ Settings │ # ╰──────────────────────────────────────────────────────────╯ +# set [flags] [command] [value] +# Flags can be combined, e.g. -as +# -a : Append the value to the existing setting. +# -s : Apply the setting to the current session. +# -g : Apply the setting globally to all sessions. +# -o : Set the option only if it is not already set. +# -u : Unset the specified option. -# set -g default-terminal "tmux-256color" +set -g default-terminal "tmux-256color" # set -ag terminal-overrides ",xterm-256color:RGB" # Undercurl -set -g default-terminal "${TERM}" +# set -g default-terminal "${TERM}" set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support set -as terminal-overrides ',*:Setulc=\E[58::2::::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colors - needs tmux-3.0 @@ -194,9 +201,9 @@ set -g @suspend_key 'F12' set -g @tmux_window_name_max_name_len "20" ### Replace $HOME with ~ in window names set -g @tmux_window_name_use_tilde "True" -set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh', 'oh-my-posh']" +set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']" set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']" -set -g @tmux_window_name_ignored_programs "['sqlite3', 'oh-my-posh', 'antidot', 'antidote', 'direnv', 'md5']" # Default is [] +set -g @tmux_window_name_ignored_programs "['sqlite3', 'antidote', 'direnv', 'md5']" # Default is [] set -g @tmux_window_name_substitute_sets "[('.+ipython2', 'ipython2'), ('.+ipython3', 'ipython3'), ('.+\.local', '.local'), ('.+asdf', 'asdf')]" ## https://github.com/tmux-plugins/tmux-continuum