1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-28 09:31:56 +00:00
powerlevel10k/internal
Roman Perepelitsa 7fd76370f5 be a lot more strict when matching the remote git URL (#2493)
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://github.com.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.
2023-12-02 12:20:55 +01:00
..
configure.zsh remove MULTIBYTE requirement from the configuration wizard (#2397) 2023-07-29 17:01:40 +02:00
icons.zsh s/VCS_GIT_ARCH_ICON/VCS_GIT_ARCHLINUX_ICON/ (#2493) 2023-12-02 11:50:18 +01:00
notes.md notes 2020-06-15 17:56:32 +02:00
p10k.zsh be a lot more strict when matching the remote git URL (#2493) 2023-12-02 12:20:55 +01:00
parser.zsh don't leak 'token' local variable in parser (#1407) 2021-05-24 09:19:13 +02:00
wizard.zsh wizard: recognize source -- ~.p10k.zsh in .zshrc 2023-11-30 09:47:34 +01:00
worker.zsh survive broken $TMPDIR 2022-01-26 15:03:22 +01:00