]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - bti-bashcompletion
Merge https://github.com/leif81/bti into main tree
[gregoa/bti.git] / bti-bashcompletion
index 79e5cda4481a37f6e5186d736c349471bf293e78..e627ae21c19195aa04b563a196b797d0476a74e8 100644 (file)
@@ -5,9 +5,10 @@ _bti()
        cur="${COMP_WORDS[COMP_CWORD]}"
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        if [[ "${cur}" == -* ]] ; then
        cur="${COMP_WORDS[COMP_CWORD]}"
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        if [[ "${cur}" == -* ]] ; then
-               COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -h
+               COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -s -n -g -h -r
                        --account --action --password --proxy --host --bash \
                        --account --action --password --proxy --host --bash \
-                       --debug --version --help" -- ${cur}) )
+                       --user --debug --dry-run --shrink-urls --page --version --verbose \
+                       --help --replyto --retweet" -- ${cur}) )
        fi
 
        if [[ "${prev}" == "--host" ]] ; then
        fi
 
        if [[ "${prev}" == "--host" ]] ; then
@@ -15,7 +16,7 @@ _bti()
        fi
 
        if [[ "${prev}" == "--action" ]] ; then
        fi
 
        if [[ "${prev}" == "--action" ]] ; then
-               COMPREPLY=( $(compgen -W "friends public update" -- ${cur} ) )
+               COMPREPLY=( $(compgen -W "friends public update user replies" -- ${cur} ) )
        fi
 
        return 0
        fi
 
        return 0