]> ToastFreeware Gitweb - gregoa/bti.git/blobdiff - bti-bashcompletion
Added action option in example bti config file
[gregoa/bti.git] / bti-bashcompletion
index fa155bc88b3a9e913262f6ec3fb198cc62bb2057..79e5cda4481a37f6e5186d736c349471bf293e78 100644 (file)
@@ -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
 }