Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | Never mind, this was a bad idea | Tom Ryder | 2015-06-19 | 2 | -36/+0 | |
| | ||||||
* | Kid gloves only needed for GCC_COLORS | Tom Ryder | 2015-06-19 | 1 | -7/+6 | |
| | ||||||
* | make(1) wrapper deals with *_COLORS vars | Tom Ryder | 2015-06-19 | 1 | -0/+18 | |
| | ||||||
* | Check term has colors before using in gcc | Tom Ryder | 2015-06-19 | 1 | -0/+19 | |
| | ||||||
* | Add missing NAME for getopts | Tom Ryder | 2015-06-19 | 1 | -1/+1 | |
| | ||||||
* | May as well keep a huge amount of history | Tom Ryder | 2015-06-16 | 1 | -2/+2 | |
| | | | | Even on my busiest system it's only a megabyte | |||||
* | Keep a bit more history in memory | Tom Ryder | 2015-06-16 | 1 | -2/+2 | |
| | | | | | Amounts to less than 172kb on my system, not really worth worrying about it, and get a few days' history at least this way | |||||
* | Improve directory completion for $PATH | Tom Ryder | 2015-06-15 | 1 | -0/+2 | |
| | ||||||
* | Remove sudo(8)/sudoedit(8) completion | Tom Ryder | 2015-06-12 | 2 | -47/+0 | |
| | | | | | | | This was a bad idea. Completes commands for every argument, and will complete with users for the command to be run by sudo(8), not just sudo(8) itself. I'd have to tell the function too much about sudo(8)'s grammar to make this reliable. | |||||
* | Remove unneeded quotes | Tom Ryder | 2015-06-12 | 1 | -4/+4 | |
| | ||||||
* | Move first newline back into fortune | Tom Ryder | 2015-06-11 | 2 | -2/+2 | |
| |