diff options
Diffstat (limited to 'bash-completion/chfn')
| -rw-r--r-- | bash-completion/chfn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bash-completion/chfn b/bash-completion/chfn index a8eaee5ae8..01139e8ba1 100644 --- a/bash-completion/chfn +++ b/bash-completion/chfn @@ -1,8 +1,14 @@ _chfn_module() { - local cur OPTS + local cur prev OPTS COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + case $prev in + '-u'|'--help'|'-v'|'--version') + return 0 + ;; + esac case $cur in -*) OPTS="-f --full-name -o --office -p --office-phone -h --home-phone -u --help -v --version" |
