Compare commits

..

1 Commits

Author SHA1 Message Date
Robin-Charles GUIHENEUF
4f873ffe09 zsh: Add preexec & precmd hook to vulporuza theme 2020-09-06 12:05:53 +02:00

View File

@ -44,7 +44,12 @@ else
ZSH_THEME_GIT_PROMPT_BISECT="%{$fg_bold[magenta]%}|BISECT%{${reset_color}%} "
fi
theme_preexec () {
print -nr $'\e]2;'"$(hostname) » $2"$'\a'
function theme_preexec {
print -nr $'\e]2;'"$USER@$(hostname) » $PWD » $2"$'\a'
}
add-zsh-hook preexec theme_preexec
function theme_precmd {
print -nr $'\e]2;'"$USER@$(hostname) » $PWD"$'\a'
}
add-zsh-hook precmd theme_precmd