1
0

add changes made in work workstation

This commit is contained in:
2026-03-15 18:19:17 +01:00
parent f100cffb79
commit 07258cd68a
16 changed files with 401 additions and 50 deletions

View File

@@ -9,7 +9,7 @@ set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
bind r source-file ~/.tmux.conf \; display "Reloaded!" # Reload with ctrl-r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
set -sg escape-time 1 # quicker responses
set -g base-index 1 # Numbering of windows
@@ -64,18 +64,26 @@ set -g @rose_pine_variant 'main' # Options are 'main', 'moon' or 'dawn'
set -g @rose_pine_date_time '%Y-%m-%d %H:%M '
set -g @rose_pine_directory 'on'
set -g @rose_pine_disable_active_window_menu 'on'
set -g @rose_pine_disable_active_window_menu 'off'
#set -g @rose_pine_left_separator ' > ' # The strings to use as separators are 1-space padded
#set -g @rose_pine_right_separator ' < ' # Accepts both normal chars & nerdfont icons
#set -g @rose_pine_field_separator ' ' # Default is two-space-padded, but can be set to anything
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @rose_pine_status_left_prepend_section '#{tmux_mode_indicator}'
set -g @rose_pine_status_left_prepend_section '#{tmux_mode_indicator} '
# bind F5 to theme switch
bind-key . run-shell "$DOTFILES/scripts/hcf/rose_pine_switch"
bind-key . run-shell 'zsh -c "$DOTFILES/scripts/hcf/rose_pine_switch"'
set -g @plugin 'ofirgall/tmux-window-name'
set -g @tmux_window_name_substitute_sets "[('.+bash', 'bash'), ('cbonsai.+', 'cbonsai')]"
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
# Replace login shell argv (-l/--login) so window name shows directory instead of "--login"
set -g @tmux_window_name_substitute_sets "[('.+bash', 'bash'), ('cbonsai.+', 'cbonsai'), (r'^(-l|--login)$', '')]"
# Include Homebrew zsh path so the plugin recognizes it as a shell (otherwise it shows full path or '-')
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh', '/opt/homebrew/bin/zsh', '/usr/local/bin/zsh']"
# When pane_current_path is unset tmux may show '-'; show '~' instead
set -g @tmux_window_name_dir_substitute_sets "[(r'^-$', '~'), (r'^\\.$', '~')]"
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git', 'cbonsai']"
set -g @tmux_window_name_use_tilde "True"
set -g @tmux_window_name_max_name_len "100"
@@ -125,7 +133,8 @@ set -g @resurrect-strategy-nvim 'session'
if-shell "uname | grep -q Darwin" {
# macOS specific settings
set -g @continuum-boot-options 'alacritty,fullscreen'
set -g default-command "reattach-to-user-namespace -l $SHELL"
# Don't use -l (login shell): avoids slow .zprofile on every new window; env is set in .zshenv
set -g default-command "reattach-to-user-namespace $SHELL"
} {
# Linux specific settings
set -g @continuum-boot-options 'alacritty,fullscreen'