mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-18 20:24:49 +00:00
add an icon for azure to vcs (#2447)
This commit is contained in:
parent
873c4ff09c
commit
862440ae11
@ -105,6 +105,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON '\uE20E ' #
|
||||
VCS_GIT_BITBUCKET_ICON '\uE20E ' #
|
||||
VCS_GIT_GITLAB_ICON '\uE20E ' #
|
||||
VCS_GIT_AZURE_ICON '\uE20E ' #
|
||||
VCS_HG_ICON '\uE1C3 ' #
|
||||
VCS_SVN_ICON 'svn'$q
|
||||
RUST_ICON 'R'
|
||||
@ -245,6 +246,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON '\uF113 ' #
|
||||
VCS_GIT_BITBUCKET_ICON '\uF171 ' #
|
||||
VCS_GIT_GITLAB_ICON '\uF296 ' #
|
||||
VCS_GIT_AZURE_ICON '\u2601 ' # ☁
|
||||
VCS_HG_ICON '\uF0C3 ' #
|
||||
VCS_SVN_ICON 'svn'$q
|
||||
RUST_ICON '\uE6A8' #
|
||||
@ -390,6 +392,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON "${CODEPOINT_OF_AWESOME_GITHUB_ALT:+\\u$CODEPOINT_OF_AWESOME_GITHUB_ALT }"
|
||||
VCS_GIT_BITBUCKET_ICON "${CODEPOINT_OF_AWESOME_BITBUCKET:+\\u$CODEPOINT_OF_AWESOME_BITBUCKET }"
|
||||
VCS_GIT_GITLAB_ICON "${CODEPOINT_OF_AWESOME_GITLAB:+\\u$CODEPOINT_OF_AWESOME_GITLAB }"
|
||||
VCS_GIT_AZURE_ICON '\u2601 ' # ☁
|
||||
VCS_HG_ICON "${CODEPOINT_OF_AWESOME_FLASK:+\\u$CODEPOINT_OF_AWESOME_FLASK }"
|
||||
VCS_SVN_ICON 'svn'$q
|
||||
RUST_ICON '\uE6A8' #
|
||||
@ -529,6 +532,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON '\uF113 ' #
|
||||
VCS_GIT_BITBUCKET_ICON '\uE703 ' #
|
||||
VCS_GIT_GITLAB_ICON '\uF296 ' #
|
||||
VCS_GIT_AZURE_ICON '\UF0805 ' #
|
||||
VCS_HG_ICON '\uF0C3 ' #
|
||||
VCS_SVN_ICON '\uE72D'$q #
|
||||
RUST_ICON '\uE7A8'$q #
|
||||
@ -670,6 +674,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON '\uF113 ' #
|
||||
VCS_GIT_BITBUCKET_ICON '\uE703 ' #
|
||||
VCS_GIT_GITLAB_ICON '\uF296 ' #
|
||||
VCS_GIT_AZURE_ICON '\uFD03 ' # ﴃ
|
||||
VCS_HG_ICON '\uF0C3 ' #
|
||||
VCS_SVN_ICON '\uE72D'$q #
|
||||
RUST_ICON '\uE7A8'$q #
|
||||
@ -808,6 +813,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON ''
|
||||
VCS_GIT_BITBUCKET_ICON ''
|
||||
VCS_GIT_GITLAB_ICON ''
|
||||
VCS_GIT_AZURE_ICON ''
|
||||
VCS_HG_ICON ''
|
||||
VCS_SVN_ICON ''
|
||||
RUST_ICON 'rust'
|
||||
@ -948,6 +954,7 @@ function _p9k_init_icons() {
|
||||
VCS_GIT_GITHUB_ICON ''
|
||||
VCS_GIT_BITBUCKET_ICON ''
|
||||
VCS_GIT_GITLAB_ICON ''
|
||||
VCS_GIT_AZURE_ICON ''
|
||||
VCS_HG_ICON ''
|
||||
VCS_SVN_ICON ''
|
||||
RUST_ICON 'R'
|
||||
|
@ -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…
Reference in New Issue
Block a user