su: (bash-completion) offer usernames rather than files
Fixes: https://github.com/karelzak/util-linux/issues/1424 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
9714331843
commit
059811d096
|
@ -41,7 +41,7 @@ _su_module()
|
|||
esac
|
||||
local IFS=$'\n'
|
||||
compopt -o filenames
|
||||
COMPREPLY=( $(compgen -f -- $cur) )
|
||||
COMPREPLY=( $(compgen -u -- $cur) )
|
||||
return 0
|
||||
}
|
||||
complete -F _su_module su
|
||||
|
|
Loading…
Reference in New Issue