From 41e84a0d9f05ceb2409214a6fb00db7494e5c606 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 23 Apr 2011 14:16:32 -0400 Subject: [PATCH] Removed unnecessary 'zsh-' prefix. --- README.md | 8 ++++---- highlighters/keyword.zsh | 4 ++-- syntax-highlighting.plugin.zsh | 1 + zsh-syntax-highlighting.zsh => syntax-highlighting.zsh | 2 +- tests/test-highlighting.zsh | 2 +- tests/test-perfs.zsh | 2 +- zsh-syntax-highlighting.plugin.zsh | 1 - 7 files changed, 10 insertions(+), 10 deletions(-) create mode 120000 syntax-highlighting.plugin.zsh rename zsh-syntax-highlighting.zsh => syntax-highlighting.zsh (99%) delete mode 120000 zsh-syntax-highlighting.plugin.zsh diff --git a/README.md b/README.md index d574418..dc4df5b 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/highlighters/keyword.zsh b/highlighters/keyword.zsh index 7302d15..25e76df 100644 --- a/highlighters/keyword.zsh +++ b/highlighters/keyword.zsh @@ -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') diff --git a/syntax-highlighting.plugin.zsh b/syntax-highlighting.plugin.zsh new file mode 120000 index 0000000..79c0d55 --- /dev/null +++ b/syntax-highlighting.plugin.zsh @@ -0,0 +1 @@ +syntax-highlighting.zsh \ No newline at end of file diff --git a/zsh-syntax-highlighting.zsh b/syntax-highlighting.zsh similarity index 99% rename from zsh-syntax-highlighting.zsh rename to syntax-highlighting.zsh index b6ff043..4aad547 100644 --- a/zsh-syntax-highlighting.zsh +++ b/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)}} diff --git a/tests/test-highlighting.zsh b/tests/test-highlighting.zsh index 7166eae..6a088ff 100755 --- a/tests/test-highlighting.zsh +++ b/tests/test-highlighting.zsh @@ -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 diff --git a/tests/test-perfs.zsh b/tests/test-perfs.zsh index 570bce6..27a4c55 100755 --- a/tests/test-perfs.zsh +++ b/tests/test-perfs.zsh @@ -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 diff --git a/zsh-syntax-highlighting.plugin.zsh b/zsh-syntax-highlighting.plugin.zsh deleted file mode 120000 index cc95cd4..0000000 --- a/zsh-syntax-highlighting.plugin.zsh +++ /dev/null @@ -1 +0,0 @@ -zsh-syntax-highlighting.zsh \ No newline at end of file