# bins completion for bash #-*- mode: shell-script;-*- _bins() { local cur prev tempdir COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} case "$prev" in -f) _filedir return 0 ;; -o) COMPREPLY=( $( compgen -W 'scaled copied custom' -- $cur ) ) return 0 ;; -c) conffile=$HOME/.bins/binsrc for (( i=1; i < COMP_CWORD; i++ )); do if [[ "${COMP_WORDS[i]}" == -f ]]; then conffile=${COMP_WORDS[i+1]} break fi done COMPREPLY=( \ $( awk -F'"' '/