abra zsh config 2.0

This commit is contained in:
Andrey Anurin
2018-08-12 15:26:21 +03:00
parent 201abd09c4
commit 6b114440e2
1195 changed files with 68948 additions and 10539 deletions

View File

@@ -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.