Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
isprogram
/
zsh-syntax-highlighting
зеркало из
https://github.com/zsh-users/zsh-syntax-highlighting.git
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Projects
0
Релизы
17
Вики
Активность
Просмотр исходного кода
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 лет назад
Родитель
304ddb9400
Сommit
603fce64b5
1 измененных файлов
:
5 добавлений
и
1 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+5
-1
zsh-syntax-highlighting.zsh
+ 5
- 1
zsh-syntax-highlighting.zsh
Просмотреть файл
@ -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
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить