about summary refs log tree commit diff
path: root/Completion/User/_su
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:03:09 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 12:03:09 +0000
commit9313787937cef5cb344dde702a1edeb6843d5ea9 (patch)
tree32f12d06cb76676c3db586922509f5afca30fb46 /Completion/User/_su
parent963623f36bc89474196d39ce24112b847b0bb2ee (diff)
downloadzsh-9313787937cef5cb344dde702a1edeb6843d5ea9.tar.gz
zsh-9313787937cef5cb344dde702a1edeb6843d5ea9.tar.xz
zsh-9313787937cef5cb344dde702a1edeb6843d5ea9.zip
moved to Completion/Unix/Command/_su
Diffstat (limited to 'Completion/User/_su')
-rw-r--r--Completion/User/_su22
1 files changed, 0 insertions, 22 deletions
diff --git a/Completion/User/_su b/Completion/User/_su
deleted file mode 100644
index daf301555..000000000
--- a/Completion/User/_su
+++ /dev/null
@@ -1,22 +0,0 @@
-#compdef su
-
-local shell comp name usr base
-
-[[ $words[2] != - ]]
-(( base=$?+2 ))
-
-if [[ CURRENT -eq base ]]; then
-  _users && return
-  usr=root
-elif [[ CURRENT -ge base+1 ]]; then
-  usr=$words[base]
-else
-  return
-fi
-
-shell="${${(M@)${(@f)$(</etc/passwd)}:#$usr*}##*:}"
-compset -n $base
-for name in $shell $shell:t -default-; do
-  comp="$_comps[$name]"
-  [[ -n "$comp" ]] && "$comp" && return
-done