add an icon for azure to vcs (#2447)

This commit is contained in:
Roman Perepelitsa 2023-10-09 10:17:06 +02:00
commit 862440ae11
2 changed files with 16 additions and 6 deletions

View file

@ -3874,11 +3874,14 @@ function _p9k_vcs_status_purge() {
function _p9k_vcs_icon() {
case "$VCS_STATUS_REMOTE_URL" in
*github*) _p9k__ret=VCS_GIT_GITHUB_ICON;;
*bitbucket*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*stash*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*gitlab*) _p9k__ret=VCS_GIT_GITLAB_ICON;;
*) _p9k__ret=VCS_GIT_ICON;;
*github*) _p9k__ret=VCS_GIT_GITHUB_ICON;;
*bitbucket*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*stash*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*gitlab*) _p9k__ret=VCS_GIT_GITLAB_ICON;;
# https://learn.microsoft.com/en-us/azure/devops/repos/git/use-ssh-keys-to-authenticate
(|*@)vs-ssh.visualstudio.com(|:*)) _p9k__ret=VCS_GIT_AZURE_ICON;; # old
(|*@)ssh.dev.azure.com(|:*)) _p9k__ret=VCS_GIT_AZURE_ICON;; # new
*) _p9k__ret=VCS_GIT_ICON;;
esac
}
@ -9402,7 +9405,7 @@ if [[ $__p9k_dump_file != $__p9k_instant_prompt_dump_file && -n $__p9k_instant_p
zf_rm -f -- $__p9k_instant_prompt_dump_file{,.zwc} 2>/dev/null
fi
typeset -g P9K_VERSION=1.19.7
typeset -g P9K_VERSION=1.19.8
unset VSCODE_SHELL_INTEGRATION
_p9k_init_ssh