Skip to content

Commit

Permalink
recognize azure devops git remote HTTPS URLs (#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Nov 1, 2023
1 parent 18f0bec commit 174ce9b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3865,9 +3865,11 @@ function _p9k_vcs_icon() {
*bitbucket*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*stash*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*gitlab*) _p9k__ret=VCS_GIT_GITLAB_ICON;;
# Azure DevOps: visualstudio.com is the old hostname, dev.azure.com is the new one.
# 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
(|*@|*.)(visualstudio.com|dev.azure.com)(|:*|/*))
_p9k__ret=VCS_GIT_AZURE_ICON
;; # old
*) _p9k__ret=VCS_GIT_ICON;;
esac
}
Expand Down Expand Up @@ -9396,7 +9398,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.9
typeset -g P9K_VERSION=1.19.10
unset VSCODE_SHELL_INTEGRATION

_p9k_init_ssh
Expand Down

0 comments on commit 174ce9b

Please sign in to comment.