summaryrefslogtreecommitdiff
path: root/completions/su
diff options
context:
space:
mode:
Diffstat (limited to 'completions/su')
-rw-r--r--completions/su6
1 files changed, 4 insertions, 2 deletions
diff --git a/completions/su b/completions/su
index df912306..2c6254d3 100644
--- a/completions/su
+++ b/completions/su
@@ -7,8 +7,8 @@ fi
_su() # linux-specific completion
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword split
+ _init_completion -s || return
case "$prev" in
-s|--shell)
@@ -23,6 +23,8 @@ _su() # linux-specific completion
;;
esac
+ $split && return
+
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace