Created
January 2, 2018 09:51
-
-
Save qianyan/c3c7f786fd7434b4f3525d675f813f49 to your computer and use it in GitHub Desktop.
svn prompt support for zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local svn_info='$(svn_prompt_info)' | |
local color_svn_info=%{$reset_color%}${svn_info}%{$reset_color%} | |
if [[ $PROMPT != *${svn_info}* ]] | |
then | |
PROMPT=$PROMPT${color_svn_info} | |
fi | |
ZSH_THEME_SVN_PROMPT_PREFIX="%{$fg_bold[blue]%}svn:(" | |
ZSH_THEME_SVN_PROMPT_SUFFIX="%{$fg_bold[blue]%})" | |
ZSH_THEME_SVN_PROMPT_DIRTY="%{$fg[red]%} ✘ %{$reset_color%}" | |
ZSH_THEME_SVN_PROMPT_CLEAN="%{$FG[040]%} ✔" |
lispstudent
commented
Apr 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment