if zstyle -T ':prompt:ganneff' set_vcs_info_defaults; then
# gather version control information for inclusion in a prompt
# we will only be using one variable, so let the code know now.
- zstyle ':vcs_info:*' max-exports 1
+ zstyle ':vcs_info:*' max-exports 2
zstyle ':vcs_info:*' use-prompt-escapes
zstyle ':vcs_info:*' use_simple
zstyle ':vcs_info:*' stagedstr "!"
# change vcs_info formats for the prompt
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "${PR_YELLOW}%b%{${PR_RED}%}:${PR_YELLOW}%r${PR_NO_COLOR}"
- zstyle ':vcs_info:*' formats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}]%m%u%c "
- zstyle ':vcs_info:*' actionformats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}-${PR_RED}(%a)${PR_NO_COLOR}]%m%u%c "
+ zstyle ':vcs_info:*' formats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}]%m%u%c" "%R"
+ zstyle ':vcs_info:*' actionformats "(${PR_YELLOW}%s${PR_NO_COLOR})-[${PR_GREEN}%b${PR_NO_COLOR}-${PR_RED}(%a)${PR_NO_COLOR}]%m%u%c"
fi
fi
fi
fi
fi
+ # And a variant that can be used in plain cd commands - directory alias
+ hash -d gtd="${vcs_info_msg_1_}"
}
prompt_ganneff_length () {