aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-03 14:47:19 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-03 14:47:19 +0300
commitcc29061253e6213c2f21a8446724315b5c41ed93 (patch)
treea1908968b05d658962d258804d116042eddc9603 /internal/p10k.zsh
parentdb35731c464c6c743603c4efd047baafaf6e6ca9 (diff)
parent165021946c4bac6aac75f84a7ed3ae640542f1c0 (diff)
Merge branch 'cdalvaro-add_space_between_remote_icon_and_commit_hash'
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 10bc612c..877be24c 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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.
if [[ "$VCS_STATUS_REMOTE_URL" == *github* ]] then
_p9k_get_icon VCS_GIT_GITHUB_ICON
- _$0_fmt REMOTE_URL $_P9K_RETVAL
elif [[ "$VCS_STATUS_REMOTE_URL" == *bitbucket* ]] then
_p9k_get_icon VCS_GIT_BITBUCKET_ICON
- _$0_fmt REMOTE_URL $_P9K_RETVAL
elif [[ "$VCS_STATUS_REMOTE_URL" == *stash* ]] then
_p9k_get_icon VCS_GIT_GITHUB_ICON
- _$0_fmt REMOTE_URL $_P9K_RETVAL
elif [[ "$VCS_STATUS_REMOTE_URL" == *gitlab* ]] then
_p9k_get_icon VCS_GIT_GITLAB_ICON
- _$0_fmt REMOTE_URL $_P9K_RETVAL
else
_p9k_get_icon VCS_GIT_ICON
- _$0_fmt REMOTE_URL $_P9K_RETVAL
fi
fi
+ _$0_fmt REMOTE_URL "$_P9K_RETVAL "
+
local ws
if [[ $POWERLEVEL9K_SHOW_CHANGESET == true || -z $VCS_STATUS_LOCAL_BRANCH ]]; then
_p9k_get_icon VCS_COMMIT_ICON