add an icon for azure to vcs (#2447)
This commit is contained in:
parent
873c4ff09c
commit
862440ae11
2 changed files with 16 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue