1 # bash completion for booh
8 cur=${COMP_WORDS[COMP_CWORD]}
9 prev=${COMP_WORDS[COMP_CWORD-1]}
12 -@(s|d|-source|-destination))
16 -@(C|M|N|u|-config|-merge-config|-merge-config-newdirs|-use-config))
21 COMPREPLY=( $( command ls /usr/share/booh/themes | grep "^$cur" ) )
25 COMPREPLY=( $( grep -c 'processor' /proc/cpuinfo | grep "^$cur" ) )
30 if [[ "$cur" == -* ]]; then
31 COMPREPLY=( $( compgen -W '-h --help -V --version -n \
32 --no-check -s --source -d --destination -t \
33 --theme -C --config -k --config-skel -M \
34 --merge-config -N --merge-config-newdirs -u \
35 --use-config -S --sizes -m --mproc -g \
36 --for-gui -v --verbose-level' -- $cur ) )
39 complete -F _booh-backend booh-backend