Only set the option locally

This commit is contained in:
Sindre Sorhus
2013-08-28 00:18:18 +02:00
parent 55645cca07
commit b5905579e4

View File

@@ -30,7 +30,7 @@
zstyle ':vcs_info:git*' actionformats ' %b|%a' zstyle ':vcs_info:git*' actionformats ' %b|%a'
# enable prompt substitution # enable prompt substitution
setopt PROMPT_SUBST setopt local_options prompt_subst
# only show username if not default # only show username if not default
[ $USER != "$PURE_DEFAULT_USERNAME" ] && local username='%n@%m ' [ $USER != "$PURE_DEFAULT_USERNAME" ] && local username='%n@%m '