summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-14 11:29:29 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-14 11:29:29 +0300
commit0717e57ff46201ff04e7d62cda8677e174a83be6 (patch)
treea965388ce18d5a10a3d77d8755aac97e96f0d1da /README.md
parentb0158178925484c058e6175e174b639237532c63 (diff)
Squashed 'gitstatus/' changes from 1c74c8db..0d23fbd1
0d23fbd1 comments 9c19c9c4 fix a typo in install that prevents the locally built gitstatusd from being used 92fd143f doc cleanup git-subtree-dir: gitstatus git-subtree-split: 0d23fbd117ad6afe52fdbd96d08cf38f941be4d3
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 291f89bf..cbf29c3a 100644
--- a/README.md
+++ b/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\$ '