X-Git-Url: https://git.toastfreeware.priv.at/gregoa/bti.git/blobdiff_plain/2e51c2b0248ea74d640905fbf81bcde44e1ce26b..1c9a54c9bf22039cb9bd5d3d582e383c7849945f:/bti-bashcompletion diff --git a/bti-bashcompletion b/bti-bashcompletion index fa155bc..ff5d9a2 100644 --- a/bti-bashcompletion +++ b/bti-bashcompletion @@ -5,8 +5,9 @@ _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 \ + COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -s -n -g -h + --account --action --password --proxy --host --bash \ + --user --debug --dry-run --shrink-urls --page --version --verbose \ --help" -- ${cur}) ) fi @@ -14,6 +15,10 @@ _bti() COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) ) fi + if [[ "${prev}" == "--action" ]] ; then + COMPREPLY=( $(compgen -W "friends public update user replies" -- ${cur} ) ) + fi + return 0 }