Fix hook when not in TMUX

This commit is contained in:
Evie Litherland-Smith 2023-02-09 16:55:39 +00:00
parent 86c11e0fce
commit 57165ac5a5

View file

@ -1,5 +1,8 @@
tmux-window-name() {
($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &)
if [[ -n $TMUX ]]
then
($TMUX_PLUGIN_MANAGER_PATH/tmux-window-name/scripts/rename_session_windows.py &)
fi
}
add-zsh-hook chpwd tmux-window-name