[zsh] Treat git-svn the same as git in the prompt

This commit is contained in:
Eryn Wells 2022-01-22 10:36:36 -08:00
parent 413799a85c
commit ff561f808f
2 changed files with 3 additions and 0 deletions

View file

@ -12,6 +12,7 @@ autoload -Uz vcs_info
zstyle ':vcs_info:*' disable p4 bzr cdv darcs mtn svk tla cvs svn
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:git:general:*' formats '%b'
zstyle ':vcs_info:git-svn:general:*' formats '%b'
# Export the current Git branch before every prompt.
function export_gitbranch {

View file

@ -36,7 +36,9 @@ function prompt_loquacious_setup
# Set up vcs_info
zstyle ':vcs_info:git:loquacious_chpwd:*' formats '%F{cyan}%r%f'
zstyle ':vcs_info:git-svn:loquacious_chpwd:*' formats '[%F{red}svn%f]%F{cyan}%r%f'
zstyle ':vcs_info:git:loquacious_precmd:*' formats '(%F{blue}%b%f)'
zstyle ':vcs_info:git-svn:loquacious_precmd:*' formats '(%F{blue}%b%f)'
PS1='${PS1_NAME}${PS1_HOST}${PS1_CWD}${PS1_REPO}${PS1_BRANCH}${PS1_STATUS}${PS1_ZLE_MODE}
$PS1_LINE'