about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:35:35 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:35:35 +0000
commit9e1a81d755a2a619d33bf4717f643a4525a29356 (patch)
treeee8535b87ddebd22a0fb749d78caf72c73565e42 /Completion
parent978c22269073aaf144652545e9c4cbc1acc587a8 (diff)
downloadzsh-9e1a81d755a2a619d33bf4717f643a4525a29356.tar.gz
zsh-9e1a81d755a2a619d33bf4717f643a4525a29356.tar.xz
zsh-9e1a81d755a2a619d33bf4717f643a4525a29356.zip
moved to Completion/Unix/Type/_signals
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Builtins/_signals37
1 files changed, 0 insertions, 37 deletions
diff --git a/Completion/Builtins/_signals b/Completion/Builtins/_signals
deleted file mode 100644
index 447d9d16c..000000000
--- a/Completion/Builtins/_signals
+++ /dev/null
@@ -1,37 +0,0 @@
-#autoload
-
-# Options (only in separate words):
-#
-# -a  use all signals (even the pseudo-signals)
-# -p  needs a `-' prefix
-#
-# A `-' or `--' as the first argument is ignored.
-
-local expl last=-3 minus
-
-while [[ "$1" = -[ap] ]]; do
-  if [[ "$1" = -a ]]; then
-    last=-1
-  else
-    minus=-
-  fi
-  shift
-done
-
-[[ "$1" = -(|-) ]] && shift
-
-if [[ -z "$minus" ]] ||
-   ! zstyle -T ":completion:${curcontext}:signals" prefix-needed ||
-   [[ "$PREFIX" = -* ]]; then
-  local disp tmp
-
-  if zstyle -t ":completion:${curcontext}:signals" prefix-hidden; then
-    tmp=( "${(@)signals[1,last]}" )
-    disp=(-d tmp)
-  else
-    disp=()
-  fi
-  _wanted signals expl signal \
-      compadd "$@" "$disp[@]" -M 'm:{a-z}={A-Z}' - \
-              "${minus}${(@)^signals[1,last]}"
-fi