do not unroll precmd alias when defining precmd function
authorTomasz Pala <gotar@polanet.pl>
Sat, 7 Nov 2020 08:43:41 +0000 (09:43 +0100)
committerTomasz Pala <gotar@polanet.pl>
Sat, 7 Nov 2020 08:43:41 +0000 (09:43 +0100)
zshrc

diff --git a/zshrc b/zshrc
index 0eb27b60ac5a941478be0ba4e384064aad1a8554..86a8f00850031abaa3c5aaa272db2968823d23c4 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -39,7 +39,7 @@ PS1='[%n@%m %~]%(!.#.%\$) '
 
 case "$TERM" in
        xterm*|nxterm|gnome*|rxvt*|konsole*)
-               precmd () { print -Pn "\e]0;%n@%m: %~\a" }
+               function precmd () { print -Pn "\e]0;%n@%m: %~\a" }
                bindkey '^[[H' beginning-of-line >/dev/null 2>&1
                bindkey '^[[F' end-of-line >/dev/null 2>&1
                bindkey '^[[A' history-beginning-search-backward >/dev/null 2>&1
This page took 0.051283 seconds and 4 git commands to generate.