Fix prompt in non-repo dirs

Sat, 11 Feb 2017 18:00:42 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 11 Feb 2017 18:00:42 -0500
changeset 513
a8caf462bfc0
parent 512
da2cf0c3d734
child 514
d596509d91f0

Fix prompt in non-repo dirs

.oh-my-zsh.cust/themes/mhoward.zsh-theme file | annotate | diff | comparison | revisions
--- a/.oh-my-zsh.cust/themes/mhoward.zsh-theme
+++ b/.oh-my-zsh.cust/themes/mhoward.zsh-theme
@@ -52,4 +52,4 @@ zstyle ':vcs_info:*:*' nvcsformats "%~" 
 
 # Define prompts.
 PROMPT="%(0?.%{$PROMPT_SUCCESS_COLOR%}.%{$PROMPT_FAILURE_COLOR%})${SSH_TTY:+[%n@%m]}%{$FX[bold]%}%$PROMPT_PATH_MAX_LENGTH<..<"'${vcs_info_msg_0_%%.}'"%<<%(!.$PROMPT_ROOT_END.$PROMPT_DEFAULT_END)%{$FX[no-bold]%}%{$FX[reset]%} "
-RPROMPT="%{$PROMPT_VCS_INFO_COLOR%}"'$vcs_info_msg_1_'"%{$FX[reset]%}"
+RPROMPT="%{$PROMPT_VCS_INFO_COLOR%}"'${vcs_info_msg_1_:- }'"%{$FX[reset]%}"

mercurial