Removed unnecessary 'zsh-' prefix.
This commit is contained in:
		
							parent
							
								
									0999ab05ba
								
							
						
					
					
						commit
						41e84a0d9f
					
				| 
						 | 
					@ -10,7 +10,7 @@ zsh-syntax-highlighting  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:
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					syntax-highlighting.zsh
 | 
				
			||||||
| 
						 | 
					@ -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)}}
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +0,0 @@
 | 
				
			||||||
zsh-syntax-highlighting.zsh
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue