theme: Clean preexec / precmd functions
This commit is contained in:
+2
-2
@@ -51,11 +51,11 @@ else
|
||||
fi
|
||||
|
||||
function theme_preexec {
|
||||
print -nr $'\e]2;'"$USER@$(hostname) » $PWD » $1 $2"$'\a'
|
||||
print -nr $'\e]2;'"$USER@$HOST » $PWD » $1"$'\a'
|
||||
}
|
||||
add-zsh-hook preexec theme_preexec
|
||||
|
||||
function theme_precmd {
|
||||
print -nr $'\e]2;'"$USER@$(hostname) » $PWD"$'\a'
|
||||
print -nr $'\e]2;'"$USER@$HOST » $PWD"$'\a'
|
||||
}
|
||||
add-zsh-hook precmd theme_precmd
|
||||
|
||||
Reference in New Issue
Block a user