mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
Suppress unrecognized keys from LS_COLORS
This commit is contained in:
parent
9ffd67d21b
commit
d511fa39fa
1 changed files with 1 additions and 0 deletions
|
|
@ -112,6 +112,7 @@ zsh_highlight_files_extract_ls_colors()
|
||||||
case $key in
|
case $key in
|
||||||
di|fi|ln|pi|so|bd|cd|or|ex|su|sg|ow|tw)
|
di|fi|ln|pi|so|bd|cd|or|ex|su|sg|ow|tw)
|
||||||
ZSH_HIGHLIGHT_FILE_TYPES[$key]=$val ;;
|
ZSH_HIGHLIGHT_FILE_TYPES[$key]=$val ;;
|
||||||
|
lc|rc|ec|rs|no|mi|do|st|ca|mh|cl) ;; # Recognized by LS_COLORS but not by us
|
||||||
*) ZSH_HIGHLIGHT_FILE_PATTERNS+=("$key" "$val") ;;
|
*) ZSH_HIGHLIGHT_FILE_PATTERNS+=("$key" "$val") ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue