diff --git a/completions/chsh b/completions/chsh index 63f8198c..c19e436c 100644 --- a/completions/chsh +++ b/completions/chsh @@ -17,9 +17,8 @@ _chsh() ;; esac - if [[ "$cur" == -* && "$( uname -s )" == @(Linux|GNU|GNU/*) ]]; then - COMPREPLY=( $( compgen -W '--shell --list-shells --help --version' \ - -- "$cur" ) ) + if [[ "$cur" == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) ) else _allowed_users fi