Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
isprogram
/
zsh-syntax-highlighting
réplica de
https://github.com/zsh-users/zsh-syntax-highlighting.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Projects
0
Lanzamientos
17
Wiki
Actividad
Explorar el Código
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
hace 13 años
padre
304ddb9400
commit
603fce64b5
Se han
modificado 1 ficheros
con
5 adiciones
y
1 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Ver fichero
@ -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
Escribir
Vista previa
Cargando…
Cancelar
Guardar