aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-06-04 11:44:48 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-06-04 11:44:48 +0300
commit0de09372950eb3f14955387d73a0fd0a5c808656 (patch)
tree0b8c8f25466182e76073d0152ed32fbc00798103 /internal/p10k.zsh
parent4b4c8af9c64790ff8425a903869e8a9c808e1fc8 (diff)
swap ahead and behind in git prompt; more logical
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index eb02e49d..559fec09 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -1801,16 +1801,16 @@ function _p9k_vcs_render() {
(( ${POWERLEVEL9K_VCS_MAX_NUM_UNTRACKED:-$POWERLEVEL9K_VCS_UNTRACKED_MAX_NUM} != 1 )) && _P9K_RETVAL+=$VCS_STATUS_NUM_UNTRACKED
_$0_fmt UNTRACKED " $_P9K_RETVAL"
fi
- if [[ $VCS_STATUS_COMMITS_AHEAD -gt 0 ]]; then
- _p9k_get_icon VCS_OUTGOING_CHANGES_ICON
- (( POWERLEVEL9K_VCS_COMMITS_AHEAD_MAX_NUM != 1 )) && _P9K_RETVAL+=$VCS_STATUS_COMMITS_AHEAD
- _$0_fmt OUTGOING_CHANGES " $_P9K_RETVAL"
- fi
if [[ $VCS_STATUS_COMMITS_BEHIND -gt 0 ]]; then
_p9k_get_icon VCS_INCOMING_CHANGES_ICON
(( POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM != 1 )) && _P9K_RETVAL+=$VCS_STATUS_COMMITS_BEHIND
_$0_fmt INCOMING_CHANGES " $_P9K_RETVAL"
fi
+ if [[ $VCS_STATUS_COMMITS_AHEAD -gt 0 ]]; then
+ _p9k_get_icon VCS_OUTGOING_CHANGES_ICON
+ (( POWERLEVEL9K_VCS_COMMITS_AHEAD_MAX_NUM != 1 )) && _P9K_RETVAL+=$VCS_STATUS_COMMITS_AHEAD
+ _$0_fmt OUTGOING_CHANGES " $_P9K_RETVAL"
+ fi
if [[ $VCS_STATUS_STASHES -gt 0 ]]; then
_p9k_get_icon VCS_STASH_ICON
_$0_fmt STASH " $_P9K_RETVAL$VCS_STATUS_STASHES"