aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/pass.bash
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove a now-inapplicable commentTom Ryder2015-11-271-4/+0
|
* Remove directory change from pass completionTom Ryder2015-10-211-4/+3
|
* Move quoting into generating loopTom Ryder2015-10-211-2/+3
| | | | Avoids yet another subshell
* 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
* Tidy up completion considerably; no more compgenTom Ryder2015-10-211-18/+15
| | | | | | | | | | | | | | * 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
* Remove overkill chopping on BASH_VERSINFO[0]Tom Ryder2015-08-221-1/+1
| | | | Pointed out by Amy Grace.
* Separate declaration from assignmentTom Ryder2015-06-061-3/+4
|
* Remove unneeded quotingTom Ryder2015-06-041-1/+1
|
* Handle empty pass(1) completes betterTom Ryder2015-06-041-4/+4
|
* Handle empty password dirsTom Ryder2015-06-021-2/+3
|
* Safer version number testTom Ryder2015-05-301-1/+1
|
* A few safety fixes to pass completionTom Ryder2015-05-291-5/+12
|
* Use custom function for pass(1) completionTom Ryder2015-05-291-46/+30
|
* Remove unnecessary null COMPREPLY assignsTom Ryder2014-11-131-1/+0
|
* Remove some overzealous command checksTom Ryder2014-10-131-5/+6
|
* Remove unneeded ${...} wraps around array derefsTom Ryder2014-02-191-1/+1
| | | | | Arrays can be dereferenced in arithmetic context, which I didn't realise until I actually tried it. This looks neater.
* Use space before semicolon as command separatorTom Ryder2014-02-101-8/+8
|
* Check for presence of binaries before script setupTom Ryder2013-10-161-0/+5
|
* Add completion for pass(1)Tom Ryder2013-10-161-0/+50