aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ud.bash
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a faster method of array appendingTom Ryder2015-12-141-2/+2
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* When expanding with globbing, use prefixTom Ryder2015-10-211-2/+1
| | | | | Rather than generating all possible completions and then filtering them down, use the completing word as a prefix for the glob
* 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-16/+35
| | | | | | | | | | | | | | * 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.
* Pass options to cd from udTom Ryder2015-08-051-1/+20
|
* Separate declaration from assignmentTom Ryder2015-06-061-3/+6
|
* Remove unneeded quotingTom Ryder2015-06-041-1/+1
|
* Add ud() function as cd ../../../.. shortcutTom Ryder2015-05-291-0/+41