diff --git a/prompt.zsh b/prompt.zsh index dcb4356..5fa4a17 100644 --- a/prompt.zsh +++ b/prompt.zsh @@ -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*' actionformats ' %b|%a' +# enable prompt substitution +setopt PROMPT_SUBST + # Only show username if not default [ $USER != $DEFAULT_USERNAME ] && local username='%n@%m '