aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/bd.bash
Commit message (Collapse)AuthorAgeFilesLines
* Remove blank lines at end of filesTom Ryder2016-03-281-1/+0
|
* Switch to a faster method of array appendingTom Ryder2015-12-141-1/+1
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* Exclude stuff not a filename in current directoryTom Ryder2015-10-211-2/+2
| | | | | 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-25/+31
| | | | | | | | | | | | | | * 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.
* Fix a logic bugTom Ryder2015-08-051-1/+2
|
* More intelligent trailing-slash filteringTom Ryder2015-08-051-3/+1
|
* Pass bd options to cdTom Ryder2015-08-051-2/+22
|
* Remove unnecessary trailing slash stripTom Ryder2015-08-051-2/+1
|
* Much more thorough bd() implementationTom Ryder2015-08-051-14/+53
|
* Start from parent dir when stripping bd()Tom Ryder2015-08-051-1/+2
|
* Strip unneeded quotesTom Ryder2015-08-051-1/+1
|
* Fix local varTom Ryder2015-08-051-0/+1
|
* Separate declaration from assignmentTom Ryder2015-06-061-1/+2
|
* Use consistent [[ syntaxTom Ryder2015-06-041-1/+1
| | | | Explicit -n, ! within [[
* Correct argument test in bd() and prompt()Tom Ryder2015-06-041-1/+1
|
* Remove superfluous null checkTom Ryder2015-05-031-1/+1
|
* Use FUNCNAME rather than hardcoding helper funcsTom Ryder2015-04-291-1/+2
|
* Correct error messageTom Ryder2014-10-041-1/+1
|
* Command to move up directory tree to matching nameTom Ryder2014-10-041-0/+36