aboutsummaryrefslogtreecommitdiffstats
path: root/qcd.bash-completion
AgeCommit message (Collapse)Author
2016-07-22Add license information (GPLv3)Teddy Wing
* COPYING file * Copyright headers on source files
2016-07-22qcd.bash-completion: Remove path variablesTeddy Wing
Assume we'll get these from the main `qcd` script as currently they're sourced to the global environment. This way at least we're not repeating those lines in two places.
2016-07-22Update Bash completion file to work with database-enabled versionTeddy Wing
Bash completion now works for the new database-backed `qcd`. Arguments 1 and 2 are completed by searching the `qcd` database. Argument 3 is completed using default Bash completion by setting `COMPREPLY` to `()` and adding `-o default` to the `complete` call as recommended here: http://stackoverflow.com/questions/12933362/getting-compgen-to-include-slashes-on-directories-when-looking-for-files/19062943#19062943 Copied over the directory variables from the `qcd` script. Not sure if I should be putting them somewhere else so they're not in two different places. I probably should. I was also concerned that once the scripts are sourced, these variables will be in a user's shell environment. That doesn't feel right, but I'm going to ignore it for now.
2016-07-21Initial commit. First working version of qcd.v0.0.1Teddy Wing
The initial working `qcd` function and bash completion function copied from my dotfiles. Shortcuts and directory paths are specified manually in both scripts.