diff options
Diffstat (limited to 'completions/usermod')
-rw-r--r-- | completions/usermod | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/completions/usermod b/completions/usermod index f8cd9e0e..0d1f497b 100644 --- a/completions/usermod +++ b/completions/usermod @@ -20,7 +20,12 @@ _usermod() return 0 ;; -G|--groups) - COMPREPLY=( $( compgen -g -- "$cur" ) ) + local prefix=; [[ $cur == *,* ]] && prefix="${cur%,*}," + COMPREPLY=( $( compgen -P "$prefix" -g -- "${cur##*,}" ) ) + return 0 + ;; + -R|--root) + _filedir -d return 0 ;; -s|--shell) |