|
|
@ -1791,22 +1791,19 @@ function _p9k_vcs_render() {
|
|
|
|
# of the GIT icon. That's what vcs_info does, so we do the same in the name of compatiblity.
|
|
|
|
# of the GIT icon. That's what vcs_info does, so we do the same in the name of compatiblity.
|
|
|
|
if [[ "$VCS_STATUS_REMOTE_URL" == *github* ]] then
|
|
|
|
if [[ "$VCS_STATUS_REMOTE_URL" == *github* ]] then
|
|
|
|
_p9k_get_icon VCS_GIT_GITHUB_ICON
|
|
|
|
_p9k_get_icon VCS_GIT_GITHUB_ICON
|
|
|
|
_$0_fmt REMOTE_URL $_P9K_RETVAL
|
|
|
|
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *bitbucket* ]] then
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *bitbucket* ]] then
|
|
|
|
_p9k_get_icon VCS_GIT_BITBUCKET_ICON
|
|
|
|
_p9k_get_icon VCS_GIT_BITBUCKET_ICON
|
|
|
|
_$0_fmt REMOTE_URL $_P9K_RETVAL
|
|
|
|
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *stash* ]] then
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *stash* ]] then
|
|
|
|
_p9k_get_icon VCS_GIT_GITHUB_ICON
|
|
|
|
_p9k_get_icon VCS_GIT_GITHUB_ICON
|
|
|
|
_$0_fmt REMOTE_URL $_P9K_RETVAL
|
|
|
|
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *gitlab* ]] then
|
|
|
|
elif [[ "$VCS_STATUS_REMOTE_URL" == *gitlab* ]] then
|
|
|
|
_p9k_get_icon VCS_GIT_GITLAB_ICON
|
|
|
|
_p9k_get_icon VCS_GIT_GITLAB_ICON
|
|
|
|
_$0_fmt REMOTE_URL $_P9K_RETVAL
|
|
|
|
|
|
|
|
else
|
|
|
|
else
|
|
|
|
_p9k_get_icon VCS_GIT_ICON
|
|
|
|
_p9k_get_icon VCS_GIT_ICON
|
|
|
|
_$0_fmt REMOTE_URL $_P9K_RETVAL
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_$0_fmt REMOTE_URL "$_P9K_RETVAL "
|
|
|
|
|
|
|
|
|
|
|
|
local ws
|
|
|
|
local ws
|
|
|
|
if [[ $POWERLEVEL9K_SHOW_CHANGESET == true || -z $VCS_STATUS_LOCAL_BRANCH ]]; then
|
|
|
|
if [[ $POWERLEVEL9K_SHOW_CHANGESET == true || -z $VCS_STATUS_LOCAL_BRANCH ]]; then
|
|
|
|
_p9k_get_icon VCS_COMMIT_ICON
|
|
|
|
_p9k_get_icon VCS_COMMIT_ICON
|
|
|
|