about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User')
-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