Sha256: 9268a1286430266dd616875b788f7836a23222d9b07bc532a4203721ee91e2e3
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
_boom_complete() { local cur prev lists curr_list items COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" curr_list=`eval echo "$prev"` local IFS=$'\n' if [ $COMP_CWORD -eq 1 ]; then lists=`boom | sed 's/^ \(.*\) ([0-9]\{1,\})$/\1/'` COMPREPLY=( $( compgen -W '${lists}' -- ${cur} ) ) elif [ $COMP_CWORD -eq 2 ]; then items=`boom $curr_list | sed 's/^ \(.\{0,16\}\):.*$/\1/'` COMPREPLY=( $( compgen -W '${items}' -- ${cur} ) ) fi } complete -o filenames -F _boom_complete boom
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
boom-0.5.0 | completion/boom.bash |