Browse code

Avoid duplicate path cropping

Julien Nicoulaud authored on 20/11/2010 at 19:12:19
Showing 1 changed files
... ...
@@ -36,7 +36,7 @@ zstyle ':vcs_info:*:*' unstagedstr '!'
36 36
 zstyle ':vcs_info:*:*' stagedstr '+'
37 37
 zstyle ':vcs_info:*:*' actionformats "%S" "%r/%s/%b %u%c (%a)"
38 38
 zstyle ':vcs_info:*:*' formats "%S" "%r/%s/%b %u%c"
39
-zstyle ':vcs_info:*:*' nvcsformats "%$PROMPT_PATH_MAX_LENGTH<..<%~%<<" ""
39
+zstyle ':vcs_info:*:*' nvcsformats "%~" ""
40 40
 
41 41
 # Define prompts.
42 42
 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]%} "