Fix hook when not in TMUX
This commit is contained in:
parent
86c11e0fce
commit
57165ac5a5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue