summaryrefslogtreecommitdiff
path: root/completions/_chsh
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_chsh')
-rw-r--r--completions/_chsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/_chsh b/completions/_chsh
index 64ce5a1b..8f8a8077 100644
--- a/completions/_chsh
+++ b/completions/_chsh
@@ -9,23 +9,23 @@ _chsh()
_init_completion || return
case $prev in
- --list-shells|--help|-v|--version)
+ --list-shells | --help | -v | --version)
return
;;
- -s|--shell)
+ -s | --shell)
_shells
return
;;
esac
- if [[ "$cur" == -* ]]; then
+ if [[ $cur == -* ]]; then
local opts=$(_parse_help "$1")
- COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") )
+ COMPREPLY=($(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur"))
else
_allowed_users
fi
} &&
-complete -F _chsh chsh
+ complete -F _chsh chsh
# ex: filetype=sh