aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/sd.bash
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a faster method of array appendingTom Ryder2015-12-141-3/+3
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* Strip trailing whitespaceTom Ryder2015-10-211-2/+2
|
* Fix comment typoTom Ryder2015-10-211-1/+1
|
* Remove unneeded options terminatorTom Ryder2015-10-211-1/+1
|
* Fix typoTom Ryder2015-10-211-1/+1
|
* Move keyword into glob completion generationTom Ryder2015-10-211-2/+1
|
* Exclude stuff not a filename in current directoryTom Ryder2015-10-211-3/+11
| | | | | Otherwise Bash adds a slash to it. %q quoting isn't perfect, but it's better
* Switch compopt back outTom Ryder2015-10-211-4/+1
| | | | | Damn, looks like 2.05a doesn't have compopt; put it back into the complete line
* Tidy up completion considerably; no more compgenTom Ryder2015-10-211-10/+36
| | | | | | | | | | | | | | * Remove all instances of compgen; for filename completion it's quite broken as it relies on implicit wordsplitting in array context, and doesn't have an option to print with a null delimiter; replaced with manual for/while loops instead * Add IFS= to while/read loops over filenames * Use "dirname/s" instead of "dir/s" variables to avoid keyword collisions and for clarity * Remove some unnecessary variables * Use shorter syntax for loop exit conditions * Move completion options into functions where applicable rather than having them on the completion definition itself
* Handle spaces correctly in completionsTom Ryder2015-10-201-0/+2
| | | | | | This is technically still wrong; COMPREPLY needs to be specified with null-delimited IFS, as done in the pass() function. This will do for now.
* Add sd Bash function (sibling directory switch)Tom Ryder2015-10-091-0/+119