abra zsh config 2.0
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
ZSH_HIGHLIGHT_STYLES[function]=$unused_highlight
|
||||
cd() {
|
||||
builtin cd "$@"
|
||||
}
|
||||
@@ -36,12 +35,8 @@ ls() {
|
||||
}
|
||||
BUFFER='cd;ls'
|
||||
|
||||
# Use $unused_highlight to see that function highlighting has precedence over command and builtin
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[function]" # cd
|
||||
"4 5 $ZSH_HIGHLIGHT_STYLES[function]" # ls
|
||||
"1 2 function" # cd
|
||||
"3 3 commandseparator" # ;
|
||||
"4 5 function" # ls
|
||||
)
|
||||
|
||||
# don't 'unfunction cd ls', since cd() and ls() should still be a functions
|
||||
# when _zsh_highlight runs. Leaving the wrapper functions is harmless.
|
||||
|
Reference in New Issue
Block a user