prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-m'|'--mapfile'|'-p'|'--profile')
+ local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -f -- $cur) )
return 0
return 0
;;
esac
- OPTS="-m --mapfile
- -p --profile
- -M --multiplier
- -i --info
- -v --verbose
- -a --all
- -b --histbin
- -s --counters
- -r --reset
- -n --no-auto
- -h --help
- -V --version"
+ OPTS="--mapfile
+ --profile
+ --multiplier
+ --info
+ --verbose
+ --all
+ --histbin
+ --counters
+ --reset
+ --no-auto
+ --help
+ --version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
}