Let's take the git example:
$ git<TAB><TAB>
git git-import-dscs git-shell
git-buildpackage git-import-orig git-upload-archive
git-dch git-pbuilder git-upload-pack
git-import-dsc git-receive-pack
Notice the after git:
$ git <tab><tab>
add fetch push
am filter-branch rebase
annotate format-patch reflog
apply fsck relink
archive gc remote
bisect get-tar-commit-id repack
blame grep replace
branch help request-pull
buildpackage imap-send reset
bundle import-dsc revert
checkout import-dscs rm
cherry import-orig shortlog
cherry-pick init show
clean instaweb show-branch
clone log stage
column merge stash
commit mergetool status
config mv submodule
credential name-rev subtree
--More--
Writing git re
$ git re<tab><tab>
rebase relink repack request-pull revert
reflog remote replace reset
$ git remote <tab><tab>
add remove set-branches set-url update
prune rename set-head show
Generally:
$ command <tab>
[actions]
How can I get these actions programmatically? Is this possible via a shell/bash script?