Compare commits
3 Commits
0c0d1a0979
...
b5efe9ff99
| Author | SHA1 | Date |
|---|---|---|
|
|
b5efe9ff99 | |
|
|
1d85c69261 | |
|
|
585696eeeb |
|
|
@ -372,6 +372,7 @@ _zsh_highlight_highlighter_main_paint()
|
||||||
'grc' :se # grc - a "generic colouriser" (that's their spelling, not mine)
|
'grc' :se # grc - a "generic colouriser" (that's their spelling, not mine)
|
||||||
'cpulimit' elp:ivz # cpulimit 0.2
|
'cpulimit' elp:ivz # cpulimit 0.2
|
||||||
'ktrace' fgpt:aBCcdiT
|
'ktrace' fgpt:aBCcdiT
|
||||||
|
'caffeinate' tw:dimsu # as of macOS's caffeinate(8) dated November 9, 2012
|
||||||
)
|
)
|
||||||
# Commands that would need to skip one positional argument:
|
# Commands that would need to skip one positional argument:
|
||||||
# flock
|
# flock
|
||||||
|
|
@ -1234,14 +1235,18 @@ _zsh_highlight_main_highlighter_check_path()
|
||||||
if [[ $expanded_path[1] == / ]]; then
|
if [[ $expanded_path[1] == / ]]; then
|
||||||
tmp_path=$expanded_path
|
tmp_path=$expanded_path
|
||||||
else
|
else
|
||||||
tmp_path=$PWD/$expanded_path
|
# Unlike $PWD, ${(%):-%/} predictably expands to '.' if the current
|
||||||
|
# working directory doesn't exist.
|
||||||
|
tmp_path=${(%):-%/}/$expanded_path
|
||||||
fi
|
fi
|
||||||
tmp_path=$tmp_path:a
|
tmp_path=$tmp_path:a
|
||||||
|
|
||||||
|
if [[ $tmp_path == /* ]]; then
|
||||||
while [[ $tmp_path != / ]]; do
|
while [[ $tmp_path != / ]]; do
|
||||||
[[ -n ${(M)ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1
|
[[ -n ${(M)ZSH_HIGHLIGHT_DIRS_BLACKLIST:#$tmp_path} ]] && return 1
|
||||||
tmp_path=$tmp_path:h
|
tmp_path=$tmp_path:h
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if (( in_command_position )); then
|
if (( in_command_position )); then
|
||||||
if [[ -x $expanded_path ]]; then
|
if [[ -x $expanded_path ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue