Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add remotes of some git server instances #2493

Merged
merged 2 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions internal/icons.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ function _p9k_init_icons() {
VCS_GIT_BITBUCKET_ICON '\uF171 ' # 
VCS_GIT_GITLAB_ICON '\uF296 ' # 
VCS_GIT_AZURE_ICON '\u2601 ' # ☁
VCS_GIT_ARCH_ICON '\uF303 ' # 
VCS_GIT_CODEBERG_ICON '\uF330 ' # 
VCS_GIT_DEBIAN_ICON '\uF306 ' # 
VCS_GIT_FREEBSD_ICON '\UF30C ' # 
VCS_GIT_FREEDESKTOP_ICON '\uF360 ' # 
VCS_GIT_GNOME_ICON '\uF361 ' # 
VCS_GIT_GNU_ICON '\uE779 ' # 
VCS_GIT_KDE_ICON '\uF332 ' # 
VCS_GIT_LINUX_ICON '\uF17C ' # 
VCS_HG_ICON '\uF0C3 ' # 
VCS_SVN_ICON 'svn'$q
RUST_ICON '\uE6A8' # 
Expand Down Expand Up @@ -533,6 +542,15 @@ function _p9k_init_icons() {
VCS_GIT_BITBUCKET_ICON '\uE703 ' # 
VCS_GIT_GITLAB_ICON '\uF296 ' # 
VCS_GIT_AZURE_ICON '\uEBE8 ' # 
VCS_GIT_ARCH_ICON '\uF303 ' # 
VCS_GIT_CODEBERG_ICON '\uF330 ' # 
VCS_GIT_DEBIAN_ICON '\uF306 ' # 
VCS_GIT_FREEBSD_ICON '\UF30C ' # 
VCS_GIT_FREEDESKTOP_ICON '\uF360 ' # 
VCS_GIT_GNOME_ICON '\uF361 ' # 
VCS_GIT_GNU_ICON '\uE779 ' # 
VCS_GIT_KDE_ICON '\uF332 ' # 
VCS_GIT_LINUX_ICON '\uF17C ' # 
VCS_HG_ICON '\uF0C3 ' # 
VCS_SVN_ICON '\uE72D'$q # 
RUST_ICON '\uE7A8'$q # 
Expand Down Expand Up @@ -675,6 +693,15 @@ function _p9k_init_icons() {
VCS_GIT_BITBUCKET_ICON '\uE703 ' # 
VCS_GIT_GITLAB_ICON '\uF296 ' # 
VCS_GIT_AZURE_ICON '\uFD03 ' # ﴃ
VCS_GIT_ARCH_ICON '\uF303 ' # 
VCS_GIT_CODEBERG_ICON '\uF330 ' # 
VCS_GIT_DEBIAN_ICON '\uF306 ' # 
VCS_GIT_FREEBSD_ICON '\UF30C ' # 
VCS_GIT_FREEDESKTOP_ICON '\uF360 ' # 
VCS_GIT_GNOME_ICON '\uF361 ' # 
VCS_GIT_GNU_ICON '\uE779 ' # 
VCS_GIT_KDE_ICON '\uF332 ' # 
VCS_GIT_LINUX_ICON '\uF17C ' # 
VCS_HG_ICON '\uF0C3 ' # 
VCS_SVN_ICON '\uE72D'$q # 
RUST_ICON '\uE7A8'$q # 
Expand Down Expand Up @@ -814,6 +841,15 @@ function _p9k_init_icons() {
VCS_GIT_BITBUCKET_ICON ''
VCS_GIT_GITLAB_ICON ''
VCS_GIT_AZURE_ICON ''
VCS_GIT_ARCH_ICON ''
VCS_GIT_CODEBERG_ICON ''
VCS_GIT_DEBIAN_ICON ''
VCS_GIT_FREEBSD_ICON ''
VCS_GIT_FREEDESKTOP_ICON ''
VCS_GIT_GNOME_ICON ''
VCS_GIT_GNU_ICON ''
VCS_GIT_KDE_ICON ''
VCS_GIT_LINUX_ICON ''
VCS_HG_ICON ''
VCS_SVN_ICON ''
RUST_ICON 'rust'
Expand Down Expand Up @@ -955,6 +991,15 @@ function _p9k_init_icons() {
VCS_GIT_BITBUCKET_ICON ''
VCS_GIT_GITLAB_ICON ''
VCS_GIT_AZURE_ICON ''
VCS_GIT_ARCH_ICON ''
VCS_GIT_CODEBERG_ICON ''
VCS_GIT_DEBIAN_ICON ''
VCS_GIT_FREEBSD_ICON ''
VCS_GIT_FREEDESKTOP_ICON ''
VCS_GIT_GNOME_ICON ''
VCS_GIT_GNU_ICON ''
VCS_GIT_KDE_ICON ''
VCS_GIT_LINUX_ICON ''
VCS_HG_ICON ''
VCS_SVN_ICON ''
RUST_ICON 'R'
Expand Down
31 changes: 30 additions & 1 deletion internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3723,7 +3723,27 @@ function +vi-vcs-detect-changes() {
elif [[ "$remote" =~ "stash" ]] then
vcs_visual_identifier='VCS_GIT_BITBUCKET_ICON'
elif [[ "$remote" =~ "gitlab" ]] then
vcs_visual_identifier='VCS_GIT_GITLAB_ICON'
elif [[ "$remote" =~ "archlinux" ]] then
vcs_visual_identifier='VCS_GIT_ARCH_ICON'
if [[ "$remote" =~ "freedesktop" ]] then
vcs_visual_identifier='VCS_GIT_FREEDESKTOP_ICON'
elif [[ "$remote" =~ "gnome" ]] then
vcs_visual_identifier='VCS_GIT_GNOME_ICON'
else
vcs_visual_identifier='VCS_GITLAB_ICON'
fi
elif [[ "$remote" =~ "codeberg" ]] then
vcs_visual_identifier='VCS_GIT_CODEBERG_ICON'
elif [[ "$remote" =~ "debian" ]] then
vcs_visual_identifier='VCS_GIT_DEBIAN_ICON'
elif [[ "$remote" =~ "freebsd" ]] then
vcs_visual_identifier='VCS_GIT_FREEBSD_ICON'
elif [[ "$remote" =~ "gnu" ]] then
vcs_visual_identifier='VCS_GIT_GNU_ICON'
elif [[ "$remote" =~ "kde" ]] then
vcs_visual_identifier='VCS_GIT_KDE_ICON'
elif [[ "$remote" =~ "kernel" ]] then
vcs_visual_identifier='VCS_GIT_LINUX_ICON'
else
vcs_visual_identifier='VCS_GIT_ICON'
fi
Expand Down Expand Up @@ -3864,7 +3884,16 @@ function _p9k_vcs_icon() {
*github*) _p9k__ret=VCS_GIT_GITHUB_ICON;;
*bitbucket*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*stash*) _p9k__ret=VCS_GIT_BITBUCKET_ICON;;
*archlinux*) _p9k__ret=VCS_GIT_ARCH_ICON;;
*freedesktop*) _p9k__ret=VCS_GIT_FREEDESKTOP_ICON;;
*gnome*) _p9k__ret=VCS_GIT_GNOME_ICON;;
*gitlab*) _p9k__ret=VCS_GIT_GITLAB_ICON;;
*codeberg*) _p9k__ret=VCS_GIT_CODEBERG_ICON;;
*debian*) _p9k__ret=VCS_GIT_DEBIAN_ICON;;
(#i)*freebsd*) _p9k__ret=VCS_GIT_FREEBSD_ICON;;
*gnu*) _p9k__ret=VCS_GIT_GNU_ICON;;
*kde*) _p9k__ret=VCS_GIT_KDE_ICON;;
*kernel*) _p9k__ret=VCS_GIT_LINUX_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
(|*@|*.)(visualstudio.com|dev.azure.com)(|:*|/*))
Expand Down