diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-14 11:29:29 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-14 11:29:29 +0300 |
commit | 5e5d3f5afff5112da97b5b972a17d24411bb04c7 (patch) | |
tree | 1d26aa18a19db659558554ec306d6207b13f9194 /gitstatus/README.md | |
parent | 4c15d633ddf311d07c45f94c326ef27e19c9e7b7 (diff) | |
parent | 0717e57ff46201ff04e7d62cda8677e174a83be6 (diff) |
Merge commit '0717e57ff46201ff04e7d62cda8677e174a83be6'
Diffstat (limited to 'gitstatus/README.md')
-rw-r--r-- | gitstatus/README.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gitstatus/README.md b/gitstatus/README.md index 291f89bf..cbf29c3a 100644 --- a/gitstatus/README.md +++ b/gitstatus/README.md @@ -103,9 +103,9 @@ function my_set_prompt() { if gitstatus_query MY && [[ $VCS_STATUS_RESULT == ok-sync ]]; then RPROMPT=${${VCS_STATUS_LOCAL_BRANCH:-@${VCS_STATUS_COMMIT}}//\%/%%} # escape % - (( $VCS_STATUS_NUM_STAGED )) && RPROMPT+='+' - (( $VCS_STATUS_NUM_UNSTAGED )) && RPROMPT+='!' - (( $VCS_STATUS_NUM_UNTRACKED )) && RPROMPT+='?' + (( VCS_STATUS_NUM_STAGED )) && RPROMPT+='+' + (( VCS_STATUS_NUM_UNSTAGED )) && RPROMPT+='!' + (( VCS_STATUS_NUM_UNTRACKED )) && RPROMPT+='?' fi setopt no_prompt_{bang,subst} prompt_percent # enable/disable correct prompt expansions @@ -204,9 +204,9 @@ function my_set_prompt() { else PS1+=" @${VCS_STATUS_COMMIT//\\/\\\\}" # escape backslash fi - [[ "$VCS_STATUS_HAS_STAGED" == 1 ]] && PS1+='+' - [[ "$VCS_STATUS_HAS_UNSTAGED" == 1 ]] && PS1+='!' - [[ "$VCS_STATUS_HAS_UNTRACKED" == 1 ]] && PS1+='?' + (( VCS_STATUS_HAS_STAGED" )) && PS1+='+' + (( VCS_STATUS_HAS_UNSTAGED" )) && PS1+='!' + (( VCS_STATUS_HAS_UNTRACKED" )) && PS1+='?' fi PS1+='\n\$ ' |