add more bash completion functions
Merge pull request #296 from spacewander/add-completion

More bash completion functions.