mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-29 06:40:08 +00:00
swap ahead and behind in git prompt; more logical
This commit is contained in:
parent
4b4c8af9c6
commit
0de0937295
1 changed files with 5 additions and 5 deletions
|
@ -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
|
(( ${POWERLEVEL9K_VCS_MAX_NUM_UNTRACKED:-$POWERLEVEL9K_VCS_UNTRACKED_MAX_NUM} != 1 )) && _P9K_RETVAL+=$VCS_STATUS_NUM_UNTRACKED
|
||||||
_$0_fmt UNTRACKED " $_P9K_RETVAL"
|
_$0_fmt UNTRACKED " $_P9K_RETVAL"
|
||||||
fi
|
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
|
if [[ $VCS_STATUS_COMMITS_BEHIND -gt 0 ]]; then
|
||||||
_p9k_get_icon VCS_INCOMING_CHANGES_ICON
|
_p9k_get_icon VCS_INCOMING_CHANGES_ICON
|
||||||
(( POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM != 1 )) && _P9K_RETVAL+=$VCS_STATUS_COMMITS_BEHIND
|
(( POWERLEVEL9K_VCS_COMMITS_BEHIND_MAX_NUM != 1 )) && _P9K_RETVAL+=$VCS_STATUS_COMMITS_BEHIND
|
||||||
_$0_fmt INCOMING_CHANGES " $_P9K_RETVAL"
|
_$0_fmt INCOMING_CHANGES " $_P9K_RETVAL"
|
||||||
fi
|
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
|
if [[ $VCS_STATUS_STASHES -gt 0 ]]; then
|
||||||
_p9k_get_icon VCS_STASH_ICON
|
_p9k_get_icon VCS_STASH_ICON
|
||||||
_$0_fmt STASH " $_P9K_RETVAL$VCS_STATUS_STASHES"
|
_$0_fmt STASH " $_P9K_RETVAL$VCS_STATUS_STASHES"
|
||||||
|
|
Loading…
Reference in a new issue