Add zsh/completion/*
This commit is contained in:
parent
5cc46a4f22
commit
7cf218b4e5
5
zprofile
5
zprofile
|
@ -45,3 +45,8 @@ path=(
|
||||||
/usr/{bin,sbin}
|
/usr/{bin,sbin}
|
||||||
/{bin,sbin}
|
/{bin,sbin}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
fpath=(
|
||||||
|
~/.zsh/completion
|
||||||
|
$fpath
|
||||||
|
)
|
||||||
|
|
13
zsh/completion/_lsarchive
Executable file
13
zsh/completion/_lsarchive
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#compdef lsarchive
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
#
|
||||||
|
# Completes lsarchive.
|
||||||
|
#
|
||||||
|
# Authors:
|
||||||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
_arguments \
|
||||||
|
'(-v --verbose)'{-v,--remove}'[verbose archive listing]' \
|
||||||
|
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z)(-.)'" && return 0
|
30
zsh/completion/_tmuxinator
Executable file
30
zsh/completion/_tmuxinator
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#compdef tmuxinator mux
|
||||||
|
|
||||||
|
_tmuxinator() {
|
||||||
|
local commands projects
|
||||||
|
commands=(${(f)"$(tmuxinator commands zsh)"})
|
||||||
|
projects=(${(f)"$(tmuxinator completions start)"})
|
||||||
|
|
||||||
|
if (( CURRENT == 2 )); then
|
||||||
|
_describe -t commands "tmuxinator subcommands" commands
|
||||||
|
_describe -t projects "tmuxinator projects" projects
|
||||||
|
elif (( CURRENT == 3)); then
|
||||||
|
case $words[2] in
|
||||||
|
copy|debug|delete|open|start)
|
||||||
|
_arguments '*:projects:($projects)'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_tmuxinator
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: Shell-Script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# indent-tabs-mode: nil
|
||||||
|
# sh-basic-offset: 2
|
||||||
|
# End:
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
13
zsh/completion/_unarchive
Executable file
13
zsh/completion/_unarchive
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#compdef unarchive
|
||||||
|
#autoload
|
||||||
|
|
||||||
|
#
|
||||||
|
# Completes unarchive.
|
||||||
|
#
|
||||||
|
# Authors:
|
||||||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||||||
|
#
|
||||||
|
|
||||||
|
_arguments \
|
||||||
|
'(-r --remove)'{-r,--remove}'[remove archive]' \
|
||||||
|
"*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z|deb)(-.)'" && return 0
|
Loading…
Reference in a new issue