-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
The icons are from organizations that manage a git instance by themselves.
Currently only icons for big providers of git hosting service are available. Organizations of open source software usually manage their own instances. Adding the remote addresses of some of this organizations will let us to identify via a glyph icon the provider of the source code.
Very nice! Thanks for the PR. Some of the icons are unavailable in Nerd Fonts v3.0 and the wizard currently does not attempt to detect fonts with a higher version than that. Eventually I'll add such detection but it's too early to do so. Are there reasonable alternatives for the following icons for people using Nerd Fonts v3.0?
If these are all hosted by gitlab, perhaps a gitlab logo? |
Codeberg is not a gitlab instance, it uses forgejo. The gitea and forgejo logos were also added on Nerd Font 3.1.0 in case someone need to use them. The GNOME and freedesktop.org instances already have the gitlab logo because "gitlab" is their subdomain, in case of KDE they use "invent" and get the git logo. |
Are there reasonable alternatives for the following icons for people using Nerd Fonts v3.0?
I cannot merge the PR as is because it'll result in broken icons for people on Nerd Fonts v3.0. |
What do you think about to directly assigning |
Thanks, that's exactly what I was asking: which fallback to use. You gave me the right kind of info. You don't need to make any changes to the PR, I'll do it myself. |
Hey, I really like using p10k to theme my zsh prompt, I would like to contribute to this project |
I think that would be cool but since the gitea icon is from NF 3.1.0 I don't know if romkatv would like to a change of something before. |
I just remembered about another repository called sourcehut (https://sourcehut.org), where the repos are hosted at |
When you choose "Many icons" option in the configuration wizard, git repositories with a remote receive an icon that depends on the remote's URL. In the past the matching of the URL was rather lax: both https://foo.bar/github.com and https://jackfan.us.kg.foo.bar/ were recognized as belonging to github.com. This is no longer the case. If you start seeing the plain "git" icon where you were used to seeing a github/gitlab/etc logo, please open an issue. Make sure to mention the remote URL of your repo. This change also allows you to specify the mapping from remote URLs to icons. Here's an example: typeset -g POWERLEVEL9K_VCS_GIT_REMOTE_ICONS=( '*@my-company.com:*' VCS_GIT_MY_COMPANY_ICON '?*' VCS_GIT_ICON '*' '' ) POWERLEVEL9K_VCS_GIT_MY_COMPANY_ICON='my-company-logo' The matching is done in the specified order: the first match wins.
I've merged this PR and applied a few changes on top. If your font has Nerd Fonts v3.1 icons, you can use them like this: typeset -g POWERLEVEL9K_VCS_GIT_CODEBERG_ICON='\uF330' You can now also override the mapping from remote git URLs to icons. See 7fd7637. |
Hi, release of Nerd Fonts 3.2.0 has been done, so, the KDE logo is now available as |
Currently only icons for big providers of git hosting service are available.
Organizations of open source software usually manage their own instances.
Adding the remote addresses of some of this organizations will let us to identify via a glyph icon the remote providing the source code.
For example some
gitlab
instances in the wild like the ones from GNOME, freedesktop.org, KDE organization can get a more personal touch.The Debian and KDE instances didn't use
gitlab
subdomain making it to not even being recognized asgitlab
instance getting thegit
icon.NOTE: Some glyphs are from Nerd Fonts 3.1.0, you may need to update your font.
ANOTHER NOTE: In the FreeBSD section
(#i)
is used because FreeBSD uses uppercases on their git commands and if someone don't change it to lowercase it wouldn't get the FreeBSD icon.IMPORTANT NOTE: The logo used for KDE organization is the logo from their KDE Plasma desktop environment because in NerdFont the KDE logo is not available, I can merge it to
font-logos
project to then submit it to NF but will not be available until NF next release.