aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/apf.bash
Commit message (Collapse)AuthorAgeFilesLines
* Change apf() to a shell scriptTom Ryder2016-08-021-99/+0
|
* Terser `read -rd ''` idiomTom Ryder2016-07-151-1/+1
|
* 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
* Tidy up completion considerably; no more compgenTom Ryder2015-10-211-1/+1
| | | | | | | | | | | | | | * 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
* Add apf func (argument prepend [from] file)Tom Ryder2015-07-231-0/+100