diff options
Diffstat (limited to 'completions/_mock')
-rw-r--r-- | completions/_mock | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/_mock b/completions/_mock index c616aed0..9649d306 100644 --- a/completions/_mock +++ b/completions/_mock @@ -24,20 +24,20 @@ _mock() case $prev in -h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|\ --uniqueext|--rpmbuild_timeout|--sources|--cwd) - return 0 + return ;; -r|--root) COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- "$cur" ) ) COMPREPLY=( ${COMPREPLY[@]/%.cfg/} ) - return 0 + return ;; --configdir|--resultdir) _filedir -d - return 0 + return ;; --spec) _filedir spec - return 0 + return ;; --target) # Yep, compatible archs, not compatible build archs @@ -45,17 +45,17 @@ _mock() # This would actually depend on what the target root # can be used to build for... COMPREPLY=( $( compgen -W "$( command rpm --showrc | \ - sed -ne 's/^\s*compatible\s\s*archs\s*:\s*\(.*\)/\1/i p' )" \ + command sed -ne 's/^\s*compatible\s\s*archs\s*:\s*\(.*\)/\1/i p' )" \ -- "$cur" ) ) - return 0 + return ;; --enable-plugin|--disable-plugin) COMPREPLY=( $( compgen -W "$plugins" -- "$cur" ) ) - return 0 + return ;; esac - $split && return 0 + $split && return if [[ "$cur" == -* ]] ; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) @@ -66,4 +66,4 @@ _mock() } && complete -F _mock mock -# ex: ts=4 sw=4 et filetype=sh +# ex: filetype=sh |