diff options
Diffstat (limited to 'completions/sh')
-rw-r--r-- | completions/sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/sh b/completions/sh index fd785a6d..93f00952 100644 --- a/completions/sh +++ b/completions/sh @@ -10,24 +10,24 @@ _sh() return ;; -o|+o) - COMPREPLY=( $( compgen -W 'allexport errexit ignoreeof monitor + COMPREPLY=( $(compgen -W 'allexport errexit ignoreeof monitor noclobber noglob noexec nolog notify nounset verbose vi - xtrace' -- "$cur" ) ) + xtrace' -- "$cur") ) return ;; esac local opts="-a -b -C -e -f -h -i -m -n -o -u -v -x" if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W "$opts -c -s" -- "$cur" ) ) + COMPREPLY=( $(compgen -W "$opts -c -s" -- "$cur") ) return elif [[ "$cur" == +* ]]; then - COMPREPLY=( $( compgen -W "${opts//-/+}" -- "$cur" ) ) + COMPREPLY=( $(compgen -W "${opts//-/+}" -- "$cur") ) return fi local args ext= - _count_args + _count_args "" "@(-c|[-+]o)" [[ $args -eq 1 ]] && ext=sh _filedir $ext } && |