From: Amir Mohammad Saied Date: Sun, 15 Feb 2009 06:48:17 +0000 (+0330) Subject: action and values for bash completion X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/commitdiff_plain/c91c4efc9683c0ee5b40ec072cccb0ffe6f94ae0?hp=af10c139640a26765d24fc4d350d05277b2510c1 action and values for bash completion --- diff --git a/bti-bashcompletion b/bti-bashcompletion index fa155bc..79e5cda 100644 --- a/bti-bashcompletion +++ b/bti-bashcompletion @@ -5,15 +5,19 @@ _bti() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" if [[ "${cur}" == -* ]] ; then - COMPREPLY=( $(compgen -W "-a -p -P -H -b -d -v -h --account \ - --password --proxy --host --bash --debug --version \ - --help" -- ${cur}) ) + COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -h + --account --action --password --proxy --host --bash \ + --debug --version --help" -- ${cur}) ) fi if [[ "${prev}" == "--host" ]] ; then COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) ) fi + if [[ "${prev}" == "--action" ]] ; then + COMPREPLY=( $(compgen -W "friends public update" -- ${cur} ) ) + fi + return 0 }