aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
...
* Switch compopt back outTom Ryder2015-10-2110-40/+15
| | | | | Damn, looks like 2.05a doesn't have compopt; put it back into the complete line
* Tidy up completion considerably; no more compgenTom Ryder2015-10-2115-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 completionsTom Ryder2015-10-204-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 commandTom Ryder2015-10-121-1/+1
| | | | Allow builtins, functions
* New function fnl()Tom Ryder2015-10-121-0/+45
|
* Add options terminator to scr() mktemp(1) callTom Ryder2015-10-121-1/+1
|
* Add sd Bash function (sibling directory switch)Tom Ryder2015-10-091-0/+119
|
* Appease shellcheck with multi arith expsTom Ryder2015-10-023-6/+6
|
* Simplify Bash version checks a bit moreTom Ryder2015-09-253-15/+19
|
* Put path func help into heredocTom Ryder2015-09-081-20/+22
| | | | A little more manageable
* Correct a version checking integerTom Ryder2015-08-221-1/+1
|
* Remove overkill chopping on BASH_VERSINFO[0]Tom Ryder2015-08-226-9/+9
| | | | Pointed out by Amy Grace.
* Fix a logic bugTom Ryder2015-08-051-1/+2
|
* More intelligent trailing-slash filteringTom Ryder2015-08-052-10/+11
|
* Pass options to cd from udTom Ryder2015-08-051-1/+20
|
* Improve commentsTom Ryder2015-08-051-0/+6
|
* Move var declaration closer to usageTom Ryder2015-08-051-1/+2
|
* Pass bd options to cdTom Ryder2015-08-051-2/+22
|
* Remove unnecessary trailing slash stripTom Ryder2015-08-051-2/+1
|
* Much more thorough bd() implementationTom Ryder2015-08-051-14/+53
|
* Start from parent dir when stripping bd()Tom Ryder2015-08-051-1/+2
|
* Strip unneeded quotesTom Ryder2015-08-051-1/+1
|
* Fix local varTom Ryder2015-08-051-0/+1
|
* readz alias for read -d '' -rTom Ryder2015-08-041-0/+5
|
* Rename pan() to paz() (like grep -Z)Tom Ryder2015-08-042-2/+2
|
* Move database option to [mysql] sectionTom Ryder2015-07-271-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() funcsTom Ryder2015-07-232-3/+5
|
* Add pan func ; print args with null delimiterTom Ryder2015-07-231-0/+6
|
* Add apf func (argument prepend [from] file)Tom Ryder2015-07-231-0/+100
|
* Remove a few unneeded quotesTom Ryder2015-07-172-3/+3
|
* Missing manual section suffixTom Ryder2015-07-141-1/+1
|
* Remove alias completionTom Ryder2015-07-031-4/+1
|
* Disable aliasesTom Ryder2015-07-031-0/+3
|
* Use bit shifting not exponentiationTom Ryder2015-06-261-2/+2
|
* Remove unneeded 'in "$@"' for argument iterationTom Ryder2015-06-264-4/+4
| | | | for defaults to iterating over the arguments
* Undo hare-brained last few commitsTom Ryder2015-06-242-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 nicelyTom Ryder2015-06-241-22/+12
|
* Remove GREP_OPTIONS exportTom Ryder2015-06-241-5/+0
|
* Move GREP_OPTIONS building to bashrcTom Ryder2015-06-241-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 ideaTom Ryder2015-06-192-36/+0
|
* Kid gloves only needed for GCC_COLORSTom Ryder2015-06-191-7/+6
|
* make(1) wrapper deals with *_COLORS varsTom Ryder2015-06-191-0/+18
|
* Check term has colors before using in gccTom Ryder2015-06-191-0/+19
|
* Add missing NAME for getoptsTom Ryder2015-06-191-1/+1
|
* May as well keep a huge amount of historyTom Ryder2015-06-161-2/+2
| | | | Even on my busiest system it's only a megabyte
* Keep a bit more history in memoryTom Ryder2015-06-161-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 $PATHTom Ryder2015-06-151-0/+2
|
* Remove sudo(8)/sudoedit(8) completionTom Ryder2015-06-122-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 quotesTom Ryder2015-06-121-4/+4
|
* Move first newline back into fortuneTom Ryder2015-06-112-2/+2
|