Removed unnecessary 'zsh-' prefix.

This commit is contained in:
Sorin Ionescu 2011-04-23 14:16:32 -04:00
parent 0999ab05ba
commit 41e84a0d9f
7 changed files with 10 additions and 10 deletions

View File

@ -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: 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 ## 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 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: * 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: * 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/ 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): * Activate the plugin in `~/.zshrc` (in **last** position):
plugins=( [plugins...] zsh-syntax-highlighting) plugins=( [plugins...] syntax-highlighting)
* Source `~/.zshrc` to take changes into account: * Source `~/.zshrc` to take changes into account:

View File

@ -32,8 +32,8 @@
# A simple keyword highlighting extension for zsh-syntax-highlighting. # A simple keyword highlighting extension for zsh-syntax-highlighting.
# To use this, please do the following steps. # To use this, please do the following steps.
# 1) Source this file after zsh-syntax-highlighting.zsh # 1) Source this file after syntax-highlighting.zsh
# % source zsh-syntax-highlighting.zsh # % source syntax-highlighting.zsh
# % source contrib/keyword.zsh # % source contrib/keyword.zsh
# 2) Add keyword and color pairs to `ZSH_HIGHLIGHT_KEYWORD_KEYWORDS`. # 2) Add keyword and color pairs to `ZSH_HIGHLIGHT_KEYWORD_KEYWORDS`.
# % ZSH_HIGHLIGHT_KEYWORD_KEYWORDS+=('rm -rf *' 'fg=white,bold,bg=red') # % ZSH_HIGHLIGHT_KEYWORD_KEYWORDS+=('rm -rf *' 'fg=white,bold,bg=red')

View File

@ -0,0 +1 @@
syntax-highlighting.zsh

View File

@ -251,7 +251,7 @@ _zsh_highlight_bind-events() {
# Resolve event names what have to be bound to. # Resolve event names what have to be bound to.
zmodload zsh/zleparameter 2>/dev/null || { zmodload zsh/zleparameter 2>/dev/null || {
echo 'zsh-syntax-highlighting:zmodload error. exiting.' >&2 echo 'syntax-highlighting:zmodload error. exiting.' >&2
return -1 return -1
} }
local -a events; : ${(A)events::=${@:#(_*|orig-*|.run-help|.which-command)}} local -a events; : ${(A)events::=${@:#(_*|orig-*|.run-help|.which-command)}}

View File

@ -33,7 +33,7 @@ local -a errors highlight_zone
local -A observed_result local -A observed_result
# Load the main script. # Load the main script.
. $(dirname $0)/../zsh-syntax-highlighting.zsh . $(dirname $0)/../syntax-highlighting.zsh
# Process each test data file in data/. # Process each test data file in data/.
for data_file in $(dirname $0)/data/*.zsh; do for data_file in $(dirname $0)/data/*.zsh; do

View File

@ -30,7 +30,7 @@
# Load the main script. # Load the main script.
. $(dirname $0)/../zsh-syntax-highlighting.zsh . $(dirname $0)/../syntax-highlighting.zsh
# Process each test data file in data/. # Process each test data file in data/.
for data_file in $(dirname $0)/data/*.zsh; do for data_file in $(dirname $0)/data/*.zsh; do

View File

@ -1 +0,0 @@
zsh-syntax-highlighting.zsh