Enable prompt substitution

Fixes #2
This commit is contained in:
Sindre Sorhus
2013-05-01 17:37:11 +02:00
parent dc640860ac
commit 36fd5674d1

View File

@@ -29,6 +29,9 @@ zstyle ':vcs_info:*' enable git # You can add hg too if needed: `git hg`
zstyle ':vcs_info:git*' formats ' %b' zstyle ':vcs_info:git*' formats ' %b'
zstyle ':vcs_info:git*' actionformats ' %b|%a' zstyle ':vcs_info:git*' actionformats ' %b|%a'
# enable prompt substitution
setopt PROMPT_SUBST
# Only show username if not default # Only show username if not default
[ $USER != $DEFAULT_USERNAME ] && local username='%n@%m ' [ $USER != $DEFAULT_USERNAME ] && local username='%n@%m '