X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=core%2F11_terminal%2F11_terminal.zshrc;fp=core%2F11_terminal%2F11_terminal.zshrc;h=f26a13195e8be2689350169d138538587eec6273;hp=cbd5ec36378e8c481b5c433e59f6bc0322da90c1;hb=f06f3b9517b5757a6d4f39db1d4be4ee3d1904f8;hpb=27bd0286349fa9da93bf5e3f1eef2c0379d338d2 diff --git a/core/11_terminal/11_terminal.zshrc b/core/11_terminal/11_terminal.zshrc index cbd5ec3..f26a131 100644 --- a/core/11_terminal/11_terminal.zshrc +++ b/core/11_terminal/11_terminal.zshrc @@ -98,9 +98,11 @@ function axzsh_terminal_title_preexec { axzsh_terminal_set_icon_title "$cmd" - [[ -z "$remote" ]] \ - && axzsh_terminal_set_window_title "$LOGNAME@$SHORT_HOST$TITLE_ADD" \ - || axzsh_terminal_set_window_title "$1" + if [[ -z "$remote" ]]; then + axzsh_terminal_set_window_title "$LOGNAME@$SHORT_HOST$TITLE_ADD" + else + axzsh_terminal_set_window_title "$1" + fi } preexec_functions+=(axzsh_terminal_title_preexec)