summaryrefslogtreecommitdiff
path: root/themes/pygmalion-virtualenv.zsh-theme
diff options
context:
space:
mode:
authorAaron N. Brock <AaronNBrock@gmail.com>2019-11-22 10:40:37 -0500
committerGitHub <noreply@github.com>2019-11-22 10:40:37 -0500
commit420e9d789a26223df9dd7df7625daf032a3f5083 (patch)
tree0ccfcd55671fd4d68b61a91188c984563384ee30 /themes/pygmalion-virtualenv.zsh-theme
parent5722677884e85ae910daab4b4624745af74540e6 (diff)
parent76d6b0256398ad1becbc304a78f51bbacfee50e5 (diff)
downloadzsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.gz
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.bz2
zsh-420e9d789a26223df9dd7df7625daf032a3f5083.zip
Merge branch 'master' into colorize-chroma-support
Diffstat (limited to 'themes/pygmalion-virtualenv.zsh-theme')
-rw-r--r--themes/pygmalion-virtualenv.zsh-theme5
1 files changed, 2 insertions, 3 deletions
diff --git a/themes/pygmalion-virtualenv.zsh-theme b/themes/pygmalion-virtualenv.zsh-theme
index ea28e125a..605e3d10c 100644
--- a/themes/pygmalion-virtualenv.zsh-theme
+++ b/themes/pygmalion-virtualenv.zsh-theme
@@ -28,7 +28,8 @@ prompt_setup_pygmalion(){
base_prompt_nocolor=$(echo "$base_prompt" | perl -pe "s/%\{[^}]+\}//g")
post_prompt_nocolor=$(echo "$post_prompt" | perl -pe "s/%\{[^}]+\}//g")
- precmd_functions+=(prompt_pygmalion_precmd)
+ autoload -U add-zsh-hook
+ add-zsh-hook precmd prompt_pygmalion_precmd
}
prompt_pygmalion_precmd(){
@@ -46,5 +47,3 @@ prompt_pygmalion_precmd(){
}
prompt_setup_pygmalion
-
-