mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
Recognize OMZ and Prezto shorthands as URLs for the detailed coloring.
This commit is contained in:
parent
72acc6127b
commit
38f430ebdc
|
|
@ -1842,7 +1842,7 @@ builtin setopt noaliases
|
|||
.zinit-formatter-url() {
|
||||
builtin emulate -LR zsh -o extendedglob
|
||||
# 1:proto 3:domain/5:start 6:end-of-it 7:no-dot-domain 9:file-path
|
||||
if [[ $1 = (#b)([^:]#)(://)((([[:alnum:]._+-]##).([[:alnum:]_+-]##))|([[:alnum:].+_-]##))(|/(*)) ]] {
|
||||
if [[ $1 = (#b)([^:]#)(://|::)((([[:alnum:]._+-]##).([[:alnum:]_+-]##))|([[:alnum:].+_-]##))(|/(*)) ]] {
|
||||
# The advanced coloring if recognized the format…
|
||||
match[9]=${match[9]//\//"%F{227}%B"/"%F{81}%b"}
|
||||
if [[ -n $match[4] ]]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue