Diese Webseite funktioniert besser mit JavaScript.
Startseite
Erkunden
Hilfe
Anmelden
isprogram
/
zsh-syntax-highlighting
Mirror von
https://github.com/zsh-users/zsh-syntax-highlighting.git
Beobachten
1
Favorisieren
0
Fork
0
Code
Issues
0
Projekte
0
Releases
17
Wiki
Aktivität
Quellcode durchsuchen
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
vor 13 Jahren
Ursprung
304ddb9400
Commit
603fce64b5
1 geänderte Dateien
mit
5 neuen
und
1 gelöschten
Zeilen
Geteilte Ansicht
Diff-Optionen
Statistiken anzeigen
Patch-Datei herunterladen
Vergleichs-Datei herunterladen
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Datei anzeigen
@ -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
Verfassen
Vorschau
Laden…
Abbrechen
Speichern