From a68ca173dc1dac5eec4d304e7eff04f908af5523 Mon Sep 17 00:00:00 2001 From: Kevin Montoya Date: Mon, 30 Oct 2023 19:51:34 -0700 Subject: [PATCH] fix: include Azure's `VCS_GIT` icon in prompt There was no case to match an Azure's DevOps git repository. A detection of an ssh or https remote server connection was included. --- internal/p10k.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 09985e0b..8ae6bb0e 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3724,6 +3724,8 @@ function +vi-vcs-detect-changes() { vcs_visual_identifier='VCS_GIT_BITBUCKET_ICON' elif [[ "$remote" =~ "gitlab" ]] then vcs_visual_identifier='VCS_GIT_GITLAB_ICON' + elif [[ "$remote" =~ "visualstudio" || "$remote" =~ "azure" ]] then + vcs_visual_identifier='VCS_GIT_AZURE_ICON' else vcs_visual_identifier='VCS_GIT_ICON' fi @@ -3867,7 +3869,7 @@ function _p9k_vcs_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 + *azure*) _p9k__ret=VCS_GIT_AZURE_ICON;; # new *) _p9k__ret=VCS_GIT_ICON;; esac }