Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix comment typo | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | ||||||
* | Remove unneeded options terminator | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | ||||||
* | Fix typo | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | ||||||
* | Move keyword into glob completion generation | Tom Ryder | 2015-10-21 | 1 | -2/+1 | |
| | ||||||
* | Exclude stuff not a filename in current directory | Tom Ryder | 2015-10-21 | 3 | -7/+15 | |
| | | | | | Otherwise Bash adds a slash to it. %q quoting isn't perfect, but it's better | |||||
* | Fix backwards test | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | ||||||
* | Flatten expansion for ancient Bash | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | | | | bash: 0: ambiguous redirect | |||||
* | Correct enumeration of git refs in completion | Tom Ryder | 2015-10-21 | 1 | -1/+2 | |
| | ||||||
* | Change COMP_REPLY to intended COMP_WORDS | Tom Ryder | 2015-10-21 | 1 | -1/+1 | |
| | ||||||
* | Move quoting into generating loop | Tom Ryder | 2015-10-21 | 1 | -2/+3 | |
| | | | | Avoids yet another subshell | |||||
* | When expanding with globbing, use prefix | Tom Ryder | 2015-10-21 | 4 | -9/+4 | |
| | | | | | Rather than generating all possible completions and then filtering them down, use the completing word as a prefix for the glob | |||||
* | Switch compopt back out | Tom Ryder | 2015-10-21 | 10 | -40/+15 | |
| | | | | | Damn, looks like 2.05a doesn't have compopt; put it back into the complete line | |||||
* | Tidy up completion considerably; no more compgen | Tom Ryder | 2015-10-21 | 15 | -243/+325 | |
| | | | | | | | | | | | | | | * 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 completions | Tom Ryder | 2015-10-20 | 4 | -0/+8 | |
| | | | | | | 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. | |||||
* | Don't require fnl() arg is a command | Tom Ryder | 2015-10-12 | 1 | -1/+1 | |
| | | | | Allow builtins, functions | |||||
* | New function fnl() | Tom Ryder | 2015-10-12 | 1 | -0/+45 | |
| | ||||||
* | Add options terminator to scr() mktemp(1) call | Tom Ryder | 2015-10-12 | 1 | -1/+1 | |
| | ||||||
* | Add sd Bash function (sibling directory switch) | Tom Ryder | 2015-10-09 | 1 | -0/+119 | |
| | ||||||
* | Appease shellcheck with multi arith exps | Tom Ryder | 2015-10-02 | 3 | -6/+6 | |
| | ||||||
* | Simplify Bash version checks a bit more | Tom Ryder | 2015-09-25 | 3 | -15/+19 | |
| | ||||||
* | Put path func help into heredoc | Tom Ryder | 2015-09-08 | 1 | -20/+22 | |
| | | | | A little more manageable | |||||
* | Correct a version checking integer | Tom Ryder | 2015-08-22 | 1 | -1/+1 | |
| | ||||||
* | Remove overkill chopping on BASH_VERSINFO[0] | Tom Ryder | 2015-08-22 | 6 | -9/+9 | |
| | | | | Pointed out by Amy Grace. | |||||
* | Fix a logic bug | Tom Ryder | 2015-08-05 | 1 | -1/+2 | |
| | ||||||
* | More intelligent trailing-slash filtering | Tom Ryder | 2015-08-05 | 2 | -10/+11 | |
| | ||||||
* | Pass options to cd from ud | Tom Ryder | 2015-08-05 | 1 | -1/+20 | |
| | ||||||
* | Improve comments | Tom Ryder | 2015-08-05 | 1 | -0/+6 | |
| | ||||||
* | Move var declaration closer to usage | Tom Ryder | 2015-08-05 | 1 | -1/+2 | |
| | ||||||
* | Pass bd options to cd | Tom Ryder | 2015-08-05 | 1 | -2/+22 | |
| | ||||||
* | Remove unnecessary trailing slash strip | Tom Ryder | 2015-08-05 | 1 | -2/+1 | |
| | ||||||
* | Much more thorough bd() implementation | Tom Ryder | 2015-08-05 | 1 | -14/+53 | |
| | ||||||
* | Start from parent dir when stripping bd() | Tom Ryder | 2015-08-05 | 1 | -1/+2 | |
| | ||||||
* | Strip unneeded quotes | Tom Ryder | 2015-08-05 | 1 | -1/+1 | |
| | ||||||
* | Fix local var | Tom Ryder | 2015-08-05 | 1 | -0/+1 | |
| | ||||||
* | readz alias for read -d '' -r | Tom Ryder | 2015-08-04 | 1 | -0/+5 | |
| | ||||||
* | Rename pan() to paz() (like grep -Z) | Tom Ryder | 2015-08-04 | 2 | -2/+2 | |
| | ||||||
* | Move database option to [mysql] section | Tom Ryder | 2015-07-27 | 1 | -1/+3 | |
| | | | | | This avoids "unknown option" errors if the files are re-used as e.g. mysqldump(1) credential files. | |||||
* | More detail for pa() and pan() funcs | Tom Ryder | 2015-07-23 | 2 | -3/+5 | |
| | ||||||
* | Add pan func ; print args with null delimiter | Tom Ryder | 2015-07-23 | 1 | -0/+6 | |
| | ||||||
* | Add apf func (argument prepend [from] file) | Tom Ryder | 2015-07-23 | 1 | -0/+100 | |
| | ||||||
* | Remove a few unneeded quotes | Tom Ryder | 2015-07-17 | 2 | -3/+3 | |
| | ||||||
* | Missing manual section suffix | Tom Ryder | 2015-07-14 | 1 | -1/+1 | |
| | ||||||
* | Remove alias completion | Tom Ryder | 2015-07-03 | 1 | -4/+1 | |
| | ||||||
* | Disable aliases | Tom Ryder | 2015-07-03 | 1 | -0/+3 | |
| | ||||||
* | Use bit shifting not exponentiation | Tom Ryder | 2015-06-26 | 1 | -2/+2 | |
| | ||||||
* | Remove unneeded 'in "$@"' for argument iteration | Tom Ryder | 2015-06-26 | 4 | -4/+4 | |
| | | | | for defaults to iterating over the arguments | |||||
* | Undo hare-brained last few commits | Tom Ryder | 2015-06-24 | 2 | -37/+34 | |
| | | | | | GREP_OPTIONS doesn't work if it's not exported, which ought to have been painfully obvious. Oh well. | |||||
* | Use Bashy syntax to build GREP_OPTIONS more nicely | Tom Ryder | 2015-06-24 | 1 | -22/+12 | |
| | ||||||
* | Remove GREP_OPTIONS export | Tom Ryder | 2015-06-24 | 1 | -5/+0 | |
| | ||||||
* | Move GREP_OPTIONS building to bashrc | Tom Ryder | 2015-06-24 | 1 | -0/+35 | |
| | | | | | Shouldn't be exported because it changes the behaviour of grep(1), which might have unwanted side effects in scripts |