mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Use tmux native method of renaming windows (#4910)
* Use tmux native method of renaming windows This uses tmux's built in method of renaming windows, and it even works with pane switching rather than relying on cd to change the window name * Update config/tmux/tmux.conf I agree with the copilot suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Jadon Brutcher <jadon.brutcher@deltamobile.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
co-authored by
Copilot
Jadon Brutcher
parent
df0109369c
commit
a261819a9b
@@ -77,6 +77,8 @@ set -g status-interval 5
|
||||
set -g status-left-length 30
|
||||
set -g status-right-length 50
|
||||
set -g window-status-separator ""
|
||||
set -gw automatic-rename on
|
||||
set -gw automatic-rename-format '#{b:pane_current_path}'
|
||||
|
||||
# Theme
|
||||
set -g status-style "bg=default,fg=default"
|
||||
|
||||
@@ -25,10 +25,6 @@ if command -v zoxide &> /dev/null; then
|
||||
printf "\U000F17A9 "
|
||||
pwd
|
||||
fi
|
||||
|
||||
if [[ -n $TMUX ]]; then
|
||||
tmux rename-window "$(basename "$PWD")"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user