Update tmux config to include session name in the status bar

This commit is contained in:
Daniel McKnight 2025-05-20 19:23:08 -07:00
parent 2baef2c38d
commit 3cdc2971e9

View file

@ -1,6 +1,3 @@
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#set -g @plugin 'tmux-plugins/tpm'
# Custom Prefix
set -g prefix C-space
bind-key C-space send-prefix
@ -16,23 +13,10 @@ bind M-r respawn-pane -k
# Mouse Scrolling
set -g mouse on
#set -g @plugin 'nhdaly/tmux-better-mouse-mode'
#set -g @scroll-without-changing-pane "on"
#set -g @emulate-scroll-for-no-mouse-alternate-buffer "on"
#unbind -T copy-mode MouseDragEnd1Pane
#bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection primary -filter | xclip -selection clipboard"
# Mouse Copy
#set -g @plugin 'tmux-plugins/tmux-yank'
#set -g @yank_action 'copy-pipe-no-clear'
#set -g @yank_selection_mouse 'copy-pipe-no-clear'
#bind -T copy-mode C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
#bind -T copy-mode-vi C-C send -X copy-pipe-no-clear "xsel -i --clipboard"\; display "Copied"
bind-key -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "xclip"\; display "Copied"
#set -g @yank_with_mouse off
#set -g @yank_line 'C-C'
# Split
bind S-down split-window -v
@ -60,8 +44,8 @@ set -g status-style bg='#222222',fg='#AD7FA8'
# Status
set -g status-left '#{?client_prefix,#[fg=#008b8b]█, }'
set -g status-right '#[fg=#ad7fa8]#(hostname -I | cut -d" " -f1) %Y-%m-%d %H:%M'
#hostname -I | cut -d' ' -f1
set -g status-right '#[fg=#ad7fa8]| #S | #(hostname -I | cut -d" " -f1) | %Y-%m-%d %H:%M '
set -g status-right-length 50
set -g status-interval 1
set-window-option -g window-status-style fg='#008b8b',bg=default
set-window-option -g window-status-current-style fg='#222222',bg='#ad7fa8'
@ -84,6 +68,5 @@ set -g @vim_navigator_mapping_right "C-Right C-l"
set -g @vim_navigator_mapping_up "C-Up C-k"
set -g @vim_navigator_mapping_down "C-Down C-j"
# Load Plugins
run '~/.tmux/plugins/tpm/tpm'