mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Merged 41e84a0d9f
into 0999ab05ba
This commit is contained in:
commit
eb47af2985
@ -10,7 +10,7 @@ zsh-syntax-highlighting  plugins directory:
|
||||
|
||||
cd ~/.oh-my-zsh/plugins/
|
||||
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
||||
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git syntax-highlighting
|
||||
|
||||
* Activate the plugin in `~/.zshrc` (in **last** position):
|
||||
|
||||
plugins=( [plugins...] zsh-syntax-highlighting)
|
||||
plugins=( [plugins...] syntax-highlighting)
|
||||
|
||||
* Source `~/.zshrc` to take changes into account:
|
||||
|
||||
|
@ -32,8 +32,8 @@
|
||||
# A simple keyword highlighting extension for zsh-syntax-highlighting.
|
||||
|
||||
# To use this, please do the following steps.
|
||||
# 1) Source this file after zsh-syntax-highlighting.zsh
|
||||
# % source zsh-syntax-highlighting.zsh
|
||||
# 1) Source this file after syntax-highlighting.zsh
|
||||
# % source syntax-highlighting.zsh
|
||||
# % source contrib/keyword.zsh
|
||||
# 2) Add keyword and color pairs to `ZSH_HIGHLIGHT_KEYWORD_KEYWORDS`.
|
||||
# % ZSH_HIGHLIGHT_KEYWORD_KEYWORDS+=('rm -rf *' 'fg=white,bold,bg=red')
|
||||
|
1
syntax-highlighting.plugin.zsh
Symbolic link
1
syntax-highlighting.plugin.zsh
Symbolic link
@ -0,0 +1 @@
|
||||
syntax-highlighting.zsh
|
@ -251,7 +251,7 @@ _zsh_highlight_bind-events() {
|
||||
|
||||
# Resolve event names what have to be bound to.
|
||||
zmodload zsh/zleparameter 2>/dev/null || {
|
||||
echo 'zsh-syntax-highlighting:zmodload error. exiting.' >&2
|
||||
echo 'syntax-highlighting:zmodload error. exiting.' >&2
|
||||
return -1
|
||||
}
|
||||
local -a events; : ${(A)events::=${@:#(_*|orig-*|.run-help|.which-command)}}
|
@ -33,7 +33,7 @@ local -a errors highlight_zone
|
||||
local -A observed_result
|
||||
|
||||
# Load the main script.
|
||||
. $(dirname $0)/../zsh-syntax-highlighting.zsh
|
||||
. $(dirname $0)/../syntax-highlighting.zsh
|
||||
|
||||
# Process each test data file in data/.
|
||||
for data_file in $(dirname $0)/data/*.zsh; do
|
||||
|
@ -30,7 +30,7 @@
|
||||
|
||||
|
||||
# Load the main script.
|
||||
. $(dirname $0)/../zsh-syntax-highlighting.zsh
|
||||
. $(dirname $0)/../syntax-highlighting.zsh
|
||||
|
||||
# Process each test data file in data/.
|
||||
for data_file in $(dirname $0)/data/*.zsh; do
|
||||
|
@ -1 +0,0 @@
|
||||
zsh-syntax-highlighting.zsh
|
Loading…
Reference in New Issue
Block a user