diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2020-08-16 14:53:06 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2020-08-16 14:53:06 -0600 |
commit | f672613e98ba6b30728517b22c0e378557d7fb81 (patch) | |
tree | 40f71cbf5809d181129f812e6466eac0b7cb2509 /themes/trapd00r.zsh-theme | |
parent | 1edd2c43b12f9f2c2ef04cfa0428db0f7fc0aa7c (diff) | |
parent | 079e7bb5e0a79171f3356d55d3f6302a82645a39 (diff) | |
download | zsh-f672613e98ba6b30728517b22c0e378557d7fb81.tar.gz zsh-f672613e98ba6b30728517b22c0e378557d7fb81.tar.bz2 zsh-f672613e98ba6b30728517b22c0e378557d7fb81.zip |
Merge remote-tracking branch 'origin/master' into master
Diffstat (limited to 'themes/trapd00r.zsh-theme')
-rw-r--r-- | themes/trapd00r.zsh-theme | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme index 144d2549a..7a589a699 100644 --- a/themes/trapd00r.zsh-theme +++ b/themes/trapd00r.zsh-theme @@ -109,23 +109,23 @@ prompt_jnrowe_precmd () { vcs_info if [ "${vcs_info_msg_0_}" = "" ]; then dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})" - PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${vcs_info_msg_0_}${dir_status} ${ret_status}%{$reset_color%} + PROMPT='${dir_status} ${ret_status}%{$reset_color%} > ' # modified, to be committed elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})" PROMPT='${vcs_info_msg_0_}%{$30%} %{$bg_bold[red]%}%{$fg_bold[cyan]%}C%{$fg_bold[black]%}OMMIT%{$reset_color%} -%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%} +${dir_status}%{$reset_color%} > ' elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})" PROMPT='${vcs_info_msg_0_}%{$bg_bold[red]%}%{$fg_bold[blue]%}D%{$fg_bold[black]%}IRTY%{$reset_color%} -%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%} +${dir_status}%{$reset_color%} %{$c13%}>%{$c0%} ' else dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})" PROMPT='${vcs_info_msg_0_} -%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%} +${dir_status}%{$reset_color%} > ' fi } |