mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-02-13 10:05:31 +08:00
Removed unnecessary 'zsh-' prefix.
This commit is contained in:
parent
0999ab05ba
commit
41e84a0d9f
@ -10,7 +10,7 @@ zsh-syntax-highlighting ![Project status](http://stillmaintained.com/nicoulaj/zs
|
||||
|
||||
Here is a one-liner to try it without installing or modifying anything:
|
||||
|
||||
wget --no-check-certificate --output-document=/tmp/zsh-syntax-highlighting.zsh https://github.com/nicoulaj/zsh-syntax-highlighting/raw/master/zsh-syntax-highlighting.zsh && . /tmp/zsh-syntax-highlighting.zsh
|
||||
wget --no-check-certificate --output-document=/tmp/syntax-highlighting.zsh https://github.com/nicoulaj/zsh-syntax-highlighting/raw/master/syntax-highlighting.zsh && . /tmp/syntax-highlighting.zsh
|
||||
|
||||
|
||||
## Install it
|
||||
@ -24,7 +24,7 @@ Here is a one-liner to try it without installing or modifying anything:
|
||||
|
||||
* Source the script **at the end** of `~/.zshrc`:
|
||||
|
||||
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /path/to/zsh-syntax-highlighting/syntax-highlighting.zsh
|
||||
|
||||
* Source `~/.zshrc` to take changes into account:
|
||||
|
||||
@ -36,11 +36,11 @@ Here is a one-liner to try it without installing or modifying anything:
|
||||
* Download the script or clone this repository in [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh) 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