Denna sida fungerar bättre med Javascript igång.
Startsida
Utforska
Hjälp
Logga in
isprogram
/
zsh-syntax-highlighting
spegling av
https://github.com/zsh-users/zsh-syntax-highlighting.git
Bevaka
1
Stjärnmärk
0
Förgrening
0
Kod
Ärenden
0
Projects
0
Släpp
17
Wiki
Aktiviteter
Bläddra i källkod
autoload add-zsh-hook && provide a nicer error message if that fails due to old zsh version, or similar situations. Reset another variable in hook function; it can't hurt
pull/82/head
Andreas Gahr
13 år sedan
förälder
304ddb9400
incheckning
603fce64b5
1 ändrade filer
med
5 tillägg
och
1 borttagningar
Delad Vy
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Visa fil
@ -207,8 +207,12 @@ _zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${0:h}/highl
_zsh_highlight_preexec_hook
(
)
{
_ZSH_HIGHLIGHT_PRIOR_BUFFER
=
_ZSH_HIGHLIGHT_PRIOR_CURSOR
=
}
add-zsh-hook preexec _zsh_highlight_preexec_hook
autoload -U add-zsh-hook
add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null
||
{
echo
'zsh-syntax-highlighting: failed loading add-zsh-hook.'
>
&
2
}
# Initialize the array of active highlighters if needed.
[
[
$#
ZSH_HIGHLIGHT_HIGHLIGHTERS -eq
0
]
]
&&
ZSH_HIGHLIGHT_HIGHLIGHTERS
=
(
main
)
||
true
Skriv
Förhandsgranska
Laddar…
Avbryt
Spara