When using commands in bash I like the double-Tab option to display the available commands. Some commands have more possible matches than others. Example: here is just some of the output after typing git and pressing Tab Tab:
$ git
git git-effort git-quick-stats
git-alias git-extras git-reauthor
git-archive-file git-feature git-rebase-patch
git-authors git-filechange-search git-receive-pack
git-back git-force-clone git-refactor
git-blametool git-fork git-release
git-branch_ git-fresh-branch git-rename-branch
git-branchz git-graft git-rename-tag
git-bug git-gs_blametool git-repl
git-bulk git-gs_branch_ git-reset-file
git-changelog git-gs_changes git-root
git-changes git-gs_diffc git-rscp
git-chore git-guilt git-scp
git-clang-format git-ignore git-sed
git-clang-format-6.0 git-ignore-io git-setup
git-clear git-info git-shell
git-clear-soft gitk git-show-merged-branches
git_commit_r git-lfs git-show-tree
git-commits-since git-line-summary git-show-unmerged-branches
git-contrib git-local-commits git-squash
git-count git-lock git-stamp
Is there a way I can pipe the output of the double-Tab to somewhere, like to grep? I found a related post (How does TAB auto-complete find options to complete?), but I'm still not sure how to implement piping the output to grep.