summaryrefslogtreecommitdiff
path: root/etc/completions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-13 13:30:20 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-13 13:30:20 +0100
commit75baad96098e75e471bf9b5ca308c520d5a6ec43 (patch)
tree88bdb40f87b1b5329ac1dbb3c7633bd3bca3cfb2 /etc/completions
parent1e56c667827d1aff22a527a8f80dc45bb865a382 (diff)
Updated function and completion file headers
Diffstat (limited to 'etc/completions')
-rw-r--r--etc/completions/_devtodo6
-rw-r--r--etc/completions/_fan7
-rw-r--r--etc/completions/_fbi6
-rw-r--r--etc/completions/_git-hook3
-rw-r--r--etc/completions/_gtd-move1
-rw-r--r--etc/completions/_initd6
-rw-r--r--etc/completions/_iwlist4
-rw-r--r--etc/completions/_pkill6
-rw-r--r--etc/completions/_sort3
-rw-r--r--etc/completions/_sshfs1
-rw-r--r--etc/completions/_toshset4
11 files changed, 29 insertions, 18 deletions
diff --git a/etc/completions/_devtodo b/etc/completions/_devtodo
index 0336654..79f6fe1 100644
--- a/etc/completions/_devtodo
+++ b/etc/completions/_devtodo
@@ -1,7 +1,7 @@
#compdef devtodo todo tda tde tdd tdr
-## completion for devtodo 0.1.20
-## Daniel Friesel <derf@derf.homelinux.org>
-## https://derf.homelinux.org/~derf/dotfiles/completion/_devtodo
+## completion for devtodo 0.1.20 <http://swapoff.org/DevTodo>
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
typeset -a arg_generic arg_add todo_opts \
priorities
diff --git a/etc/completions/_fan b/etc/completions/_fan
index 81f28fd..9549a35 100644
--- a/etc/completions/_fan
+++ b/etc/completions/_fan
@@ -1,9 +1,8 @@
#compdef fan
## vim:ft=zsh
-## fan completion
-## Daniel Friesel <derf@derf.homelinux.org>
-## https://derf.homelinux.org/~derf/dotfiles/completion/_fan
-## see also: https://derf.homelinux.org/~derf/code/fan
+## fan completion <https://derf.homelinux.org/~derf/code/fan>
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
local arguments_thinkpad arguments_generic
diff --git a/etc/completions/_fbi b/etc/completions/_fbi
index 63e2d20..8af7fb0 100644
--- a/etc/completions/_fbi
+++ b/etc/completions/_fbi
@@ -1,7 +1,7 @@
#compdef fbi
-## completion for fbi 2.07-1, based on fbi -h
-## Daniel Friesel <derf@derf.homelinux.org>
-## https://derf.homelinux.org/~derf/dotfiles/completion/_fbi
+## completion for fbi <http://linux.bytesex.org/fbida/> 2.07-1, based on fbi -h
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
typeset -a arguments
diff --git a/etc/completions/_git-hook b/etc/completions/_git-hook
index 20308c6..cdf15a7 100644
--- a/etc/completions/_git-hook
+++ b/etc/completions/_git-hook
@@ -1,4 +1,7 @@
#compdef git-hook
+## Completion for the git-hook function, see ../functions/git-hook
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
typeset hook_dir expl
diff --git a/etc/completions/_gtd-move b/etc/completions/_gtd-move
index e9e7bc5..e8cc804 100644
--- a/etc/completions/_gtd-move
+++ b/etc/completions/_gtd-move
@@ -1,4 +1,5 @@
#compdef gtd-move
+## completion for the gtd-move function, see ../functions/gtd-move
typeset -a arguments
diff --git a/etc/completions/_initd b/etc/completions/_initd
index 3da387c..61abd04 100644
--- a/etc/completions/_initd
+++ b/etc/completions/_initd
@@ -1,8 +1,12 @@
#compdef Start Restart Stop Reload
## vim:ft=zsh
+## Completion for the Start, Stop etc. functions introduced in ../function
+##
## Note: This script parses the files in /etc/init.d to generate the matches.
## If you'd prefer to just have all the files in /etc/init.d as arguments,
## write "zstyle ':completion:*:*:_initd' all-files true" into your zshrc
+##
+## Most of this has been taken from the _init_d function provided with zsh
typeset arguments file bang
typeset specific=${service:l}
@@ -14,8 +18,6 @@ if zstyle -t ':completion:*:*:_initd' all-files; then
return 0
fi
-# Most of the loop's content has been taken from the _init_d
-# completion function provided with zsh
for file in /etc/init.d/*(*); {
read -u0 -k2 bang < $file && [[ $bang == '#!' ]] &&
[[ -n ${${(j:|:s:|:)${(M)${(f)"$(< $file)"}:#[[:blank:]]#(\'|)(${~action}[[:blank:]]#\|[[:blank:]]#)#${~specific}([[:blank:]]#\|[[:blank:]]#${~action})#(\'|)\)}}//[^-a-z_]} ]] &&
diff --git a/etc/completions/_iwlist b/etc/completions/_iwlist
index 99904ff..6ca0846 100644
--- a/etc/completions/_iwlist
+++ b/etc/completions/_iwlist
@@ -1,7 +1,7 @@
#compdef iwlist
## iwlist completion as requested by mxey
-## Written 2008 by Daniel Friesel <derf@derf.homelinux.org>
-## https://derf.homelinux.org/~derf/dotfiles/zsh/completions/_iwlist
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
function _iwlist_options () {
typeset -a options
diff --git a/etc/completions/_pkill b/etc/completions/_pkill
index a93173a..35f5082 100644
--- a/etc/completions/_pkill
+++ b/etc/completions/_pkill
@@ -1,6 +1,8 @@
#compdef pkill pgrep
-## completion for pkill
-## Written 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## completion for pkill and pgrep
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
+
## Not finished
## * Some options lack completion / their completion is inspecific
diff --git a/etc/completions/_sort b/etc/completions/_sort
index 8c49a26..6d6bc55 100644
--- a/etc/completions/_sort
+++ b/etc/completions/_sort
@@ -1,4 +1,7 @@
#compdef sort
+## Quick, dirty and probably incomplete sort completion
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
typeset -a arguments
diff --git a/etc/completions/_sshfs b/etc/completions/_sshfs
index e06f8d4..6a6f150 100644
--- a/etc/completions/_sshfs
+++ b/etc/completions/_sshfs
@@ -2,6 +2,7 @@
## Since _user_at_host was a little inflexible,
## I ripped the responsible parts from _ssh.
## In future, sshfs should be handled by _ssh as well
+## Copyright goes to whoever wrote _ssh (if in doubt, the zsh dudes)
typeset expl lstate tmp
diff --git a/etc/completions/_toshset b/etc/completions/_toshset
index 8393fc7..6c48d45 100644
--- a/etc/completions/_toshset
+++ b/etc/completions/_toshset
@@ -1,8 +1,8 @@
#compdef toshset
## vim:ft=zsh
## completion for toshset 1.73-2, based toshset(1) and a Toshiba Satellite 2670
-## Daniel Friesel <derf@derf.homelinux.org>
-## https://derf.homelinux.org/~derf/dotfiles/completion/_toshset
+## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org>
+## License: WTFPL <http://sam.zoy.org/wtfpl>
local arguments