aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cf.bash
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up completion considerably; no more compgenTom Ryder2015-10-211-10/+10
| | | | | | | | | | | | | | * 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
* Use FUNCNAME rather than hardcoding helper funcsTom Ryder2015-04-291-3/+6
|
* Complete cf function with dir namesTom Ryder2015-03-251-0/+1
|
* Move array decs inline, remove quotesTom Ryder2014-10-101-2/+1
|
* Use subshell to elegantly preserve shoptsTom Ryder2014-10-051-24/+8
|
* Don't break up short linesTom Ryder2014-02-191-8/+4
|
* Avoid ambiguous conditional syntaxTom Ryder2014-02-191-4/+12
|
* Use space before semicolon as command separatorTom Ryder2014-02-101-3/+3
|
* Better error conditionsTom Ryder2013-12-111-1/+11
|
* Got my logic backwards; UNSET optionsTom Ryder2013-12-111-2/+2
|
* Error message if not a directoryTom Ryder2013-12-111-3/+8
|
* Simpler output in the style of du(1)Tom Ryder2013-12-111-1/+1
|
* Little function to count filesTom Ryder2013-12-111-0/+25