From fbf0bd30592df13097d0c4f19020e33757f531f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 15 May 2011 20:10:37 +0300 Subject: [PATCH] chsh: Use _parse_usage. --- completions/chsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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