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:06:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:06:44 +0000
commita46b80e0ba29d79267d2fda3aa3ef4b389970c53 (patch)
treeb0e97e6fb15ae840c4983f84ca1d7d95b04cbe10 /Completion
parentc1d508d8349e5da8ab99037befed761ca58c94e0 (diff)
downloadzsh-a46b80e0ba29d79267d2fda3aa3ef4b389970c53.tar.gz
zsh-a46b80e0ba29d79267d2fda3aa3ef4b389970c53.tar.xz
zsh-a46b80e0ba29d79267d2fda3aa3ef4b389970c53.zip
moved to Completion/Base/Completer/_expand_alias
Diffstat (limited to 'Completion')
-rwxr-xr-xCompletion/Core/_expand_alias48
1 files changed, 0 insertions, 48 deletions
diff --git a/Completion/Core/_expand_alias b/Completion/Core/_expand_alias
deleted file mode 100755
index 3809a834f..000000000
--- a/Completion/Core/_expand_alias
+++ /dev/null
@@ -1,48 +0,0 @@
-#compdef -K _expand_alias complete-word \C-xa
-
-local word expl tmp pre sel what
-
-setopt localoptions ${_comp_options[@]}
-
-if [[ -n $funcstack[2] ]]; then
-  if [[ "$funcstack[2]" = _prefix ]]; then
-    word="$IPREFIX$PREFIX$SUFFIX"
-  else
-    word="$IPREFIX$PREFIX$SUFFIX$ISUFFIX"
-  fi
-  pre=()
-else
-  local curcontext="$curcontext"
-
-  if [[ -z "$curcontext" ]]; then
-    curcontext="expand-alias-word:::"
-  else
-    curcontext="expand-alias-word:${curcontext#*:}"
-  fi
-
-  word="$IPREFIX$PREFIX$SUFFIX$ISUFFIX"
-  pre=(_main_complete - aliases)
-fi
-
-zstyle -s ":completion:${curcontext}:" regular tmp || tmp=yes
-case $tmp in
-always) sel=r;;
-yes|1|true|on) [[ CURRENT -eq 1 ]] && sel=r;;
-esac
-zstyle -T ":completion:${curcontext}:" global && sel="g$sel"
-zstyle -t ":completion:${curcontext}:" disabled && sel="${sel}${(U)sel}"
-
-tmp=
-[[ $sel = *r* ]] && tmp=$aliases[$word]
-[[ -z $tmp && $sel = *g* ]] && tmp=$galiases[$word]
-[[ -z $tmp && $sel = *R* ]] && tmp=$dis_aliases[$word]
-[[ -z $tmp && $sel = *G* ]] && tmp=$dis_galiases[$word]
-
-if [[ -n $tmp ]]; then
-  $pre _wanted aliases expl alias compadd -UQ ${(Q)tmp%%[[:blank:]]##}
-elif (( $#pre )) && zstyle -t ":completion:${curcontext}:" complete; then
-  $pre _aliases -s "$sel" -S ''
-else
-  return 1
-fi
-