Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
isprogram
/
zsh-syntax-highlighting
espelho de
https://github.com/zsh-users/zsh-syntax-highlighting.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Projects
0
Lançamentos
17
Wiki
Trabalho
Ver a proveniência
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
há 13 anos
ascendente
304ddb9400
cometimento
603fce64b5
1 ficheiros alterados
com
5 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Ver ficheiro
@ -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
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar