Use site-functions directory for all zsh plugins
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
				
			|||||||
#compdef cptemplate
 | 
					#compdef cptemplate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# zsh completions for 'cptemplate'
 | 
					# ========== Completions ==========
 | 
				
			||||||
# automatically generated with http://github.com/RobSis/zsh-completion-generator
 | 
					 | 
				
			||||||
local arguments
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
arguments=(
 | 
					arguments=(
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
#compdef dlaudio
 | 
					#compdef dlaudio
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# zsh completions for 'dlaudio'
 | 
					# zsh completions for 'dlaudio'
 | 
				
			||||||
# automatically generated with http://github.com/RobSis/zsh-completion-generator
 | 
					 | 
				
			||||||
local arguments
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
arguments=(
 | 
					arguments=(
 | 
				
			||||||
							
								
								
									
										32
									
								
								zsh/_fedit
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								zsh/_fedit
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,32 @@
 | 
				
			|||||||
 | 
					#compdef fedit
 | 
				
			||||||
 | 
					# Fuzzy find a file and then edit it
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Shortcuts ==========
 | 
				
			||||||
 | 
					_fedit() {
 | 
				
			||||||
 | 
					    /usr/bin/fedit
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_etcedit() {
 | 
				
			||||||
 | 
					    /usr/bin/fedit --etc
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					zle -N fedit
 | 
				
			||||||
 | 
					bindkey -M viins '^o' _fedit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					zle -N _etcedit
 | 
				
			||||||
 | 
					bindkey -M viins '^e' _etcedit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Completions ==========
 | 
				
			||||||
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					arguments=(
 | 
				
			||||||
 | 
					$argument_list
 | 
				
			||||||
 | 
					  {-h, --help}'[show this help message and exit]'
 | 
				
			||||||
 | 
					  {-b, --boot}'[edit a file in /boot]'
 | 
				
			||||||
 | 
					  {-d, --dir}'[edit a file in a given directory]'
 | 
				
			||||||
 | 
					  {-E, --etc}'[edit a file in /etc]'
 | 
				
			||||||
 | 
					  {-e, --editor}'[use a given editor]'
 | 
				
			||||||
 | 
					  '*:filename:_files'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_arguments -s $arguments
 | 
				
			||||||
@@ -1,4 +1,6 @@
 | 
				
			|||||||
# key bindings for fless script
 | 
					#compdef fless
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Shortcuts ==========
 | 
				
			||||||
fless() {
 | 
					fless() {
 | 
				
			||||||
    /usr/bin/fless
 | 
					    /usr/bin/fless
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -1,7 +1,10 @@
 | 
				
			|||||||
 | 
					#compdef fcd
 | 
				
			||||||
# Fuzzy cd from anywhere
 | 
					# Fuzzy cd from anywhere
 | 
				
			||||||
# Dependencies
 | 
					# Dependencies
 | 
				
			||||||
# - fzf
 | 
					# * fzf
 | 
				
			||||||
# - mlocate
 | 
					# * mlocate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Shortcuts ==========
 | 
				
			||||||
cf() {
 | 
					cf() {
 | 
				
			||||||
    [[ -z "${*}" ]] && return 1
 | 
					    [[ -z "${*}" ]] && return 1
 | 
				
			||||||
    [[ ! -x /usr/bin/fzf ]] && return 1
 | 
					    [[ ! -x /usr/bin/fzf ]] && return 1
 | 
				
			||||||
@@ -18,3 +21,13 @@ cf() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
autoload -Uz cf
 | 
					autoload -Uz cf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Completions ==========
 | 
				
			||||||
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					arguments=(
 | 
				
			||||||
 | 
					$argument_list
 | 
				
			||||||
 | 
					  '*:filename:_files'
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					_arguments -s $arguments
 | 
				
			||||||
@@ -1,5 +1,7 @@
 | 
				
			|||||||
 | 
					#compdef mkcd
 | 
				
			||||||
# Make a directory, then change into it
 | 
					# Make a directory, then change into it
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ========== Shortcuts ==========
 | 
				
			||||||
mkcd() {
 | 
					mkcd() {
 | 
				
			||||||
    [[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
 | 
					    [[ ! -d "${1}" ]] && mkdir --parents -- "${1}"
 | 
				
			||||||
    cd "${1}" || exit
 | 
					    cd "${1}" || exit
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
#compdef open
 | 
					#compdef open
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# zsh completions for 'open'
 | 
					# ========== Completions ==========
 | 
				
			||||||
# automatically generated with http://github.com/RobSis/zsh-completion-generator
 | 
					 | 
				
			||||||
local arguments
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
arguments=(
 | 
					arguments=(
 | 
				
			||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
#compdef quickdel
 | 
					#compdef quickdel
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# zsh completions for 'quickdel'
 | 
					# ========== Completions ==========
 | 
				
			||||||
# automatically generated with http://github.com/RobSis/zsh-completion-generator
 | 
					 | 
				
			||||||
local arguments
 | 
					local arguments
 | 
				
			||||||
 | 
					
 | 
				
			||||||
arguments=(
 | 
					arguments=(
 | 
				
			||||||
@@ -1,14 +0,0 @@
 | 
				
			|||||||
# call the fedit script
 | 
					 | 
				
			||||||
_fedit() {
 | 
					 | 
				
			||||||
    /usr/bin/fedit
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
_etcedit() {
 | 
					 | 
				
			||||||
    /usr/bin/fedit -E
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
zle -N fedit
 | 
					 | 
				
			||||||
bindkey -M viins '^o' _fedit
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
zle -N _etcedit
 | 
					 | 
				
			||||||
bindkey -M viins '^e' _etcedit
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user