Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switch to a faster method of array appending | Tom Ryder | 2015-12-14 | 1 | -4/+4 |
| | | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a | ||||
* | Undo hare-brained last few commits | Tom Ryder | 2015-06-24 | 1 | -24/+19 |
| | | | | | 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 | ||||
* | Avoid command substitution inline declaration | Tom Ryder | 2015-06-06 | 1 | -1/+2 |
| | |||||
* | Use consistent [[ syntax | Tom Ryder | 2015-06-04 | 1 | -1/+1 |
| | | | | Explicit -n, ! within [[ | ||||
* | Avoid condition definition of functions | Tom Ryder | 2015-05-31 | 1 | -11/+14 |
| | |||||
* | Consistent color count method | Tom Ryder | 2015-05-31 | 1 | -2/+4 |
| | |||||
* | Overhaul grep(1) and ls(1) options and wrappers | Tom Ryder | 2015-05-30 | 1 | -39/+12 |
| | |||||
* | Ignore tput(1) stderr | Tom Ryder | 2015-05-30 | 1 | -1/+1 |
| | |||||
* | Move array decs inline, remove quotes | Tom Ryder | 2014-10-10 | 1 | -6/+3 |
| | |||||
* | Remove brace expansion for grep alias | Tom Ryder | 2014-10-10 | 1 | -3/+7 |
| | |||||
* | Use space before semicolon as command separator | Tom Ryder | 2014-02-10 | 1 | -3/+3 |
| | |||||
* | Fix some hare-brained comments | Tom Ryder | 2013-09-15 | 1 | -1/+1 |
| | |||||
* | Some more array syntax fixes | Tom Ryder | 2013-09-10 | 1 | -4/+4 |
| | |||||
* | Turns out older Bash is muddled by var=() | Tom Ryder | 2013-09-01 | 1 | -1/+1 |
| | | | | Initialisation with an array literal doesn't work in 2.05a | ||||
* | More sensible use of local | Tom Ryder | 2013-09-01 | 1 | -4/+4 |
| | | | | | | Don't declare integers/arrays, just use them. Also includes a minor scope fix -- don't need to count number of colors on every call to prompt(), just for `prompt on`. | ||||
* | Fix comment | Tom Ryder | 2013-08-30 | 1 | -1/+1 |
| | |||||
* | Specify -f for unsetting helper functions | Tom Ryder | 2013-08-28 | 1 | -1/+1 |
| | |||||
* | Remove unneeded underscores before helper funcs | Tom Ryder | 2013-08-28 | 1 | -3/+3 |
| | |||||
* | Standardise use of printf | Tom Ryder | 2013-08-21 | 1 | -1/+1 |
| | |||||
* | Remove unnecessary quoting in simple assignments | Tom Ryder | 2013-08-20 | 1 | -2/+2 |
| | |||||
* | Remove unneeded quoting within [[ ]] | Tom Ryder | 2013-08-20 | 1 | -4/+4 |
| | |||||
* | Move --color option for grep to end of alias | Tom Ryder | 2013-08-18 | 1 | -7/+7 |
| | |||||
* | Add some comments to the ls/grep alias functions | Tom Ryder | 2013-08-18 | 1 | -0/+15 |
| | |||||
* | Use arithmetic expression for color space tests | Tom Ryder | 2013-08-18 | 1 | -1/+2 |
| | |||||
* | Use arrays to collect options for ls/grep aliases | Tom Ryder | 2013-08-18 | 1 | -5/+6 |
| | |||||
* | Improve color detection logic for prompt/ls/grep | Tom Ryder | 2013-08-05 | 1 | -1/+1 |
| | | | | Use tput properly and only when found and necessary | ||||
* | Use standard structure for if/for in shell | Tom Ryder | 2013-07-31 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | | | | | Mostly for clarity reasons; using this syntax: if [ condition ]; then commands fi As opposed to: if [ condition ] then commands fi Or: [ condition ] && command | ||||
* | Place missing quotes | Tom Ryder | 2013-07-30 | 1 | -2/+2 |
| | |||||
* | Fix grep/ls aliasing for efficiency/correctness | Tom Ryder | 2013-07-30 | 1 | -5/+5 |
| | | | | Avoiding the use of echo, using builtins whereever possible | ||||
* | More portable non-surprise syntax for functions | Tom Ryder | 2013-07-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | <tyrmored> is this syntax actually problematic? <tyrmored> function whatever { <tyrmored> thangs <tyrmored> } <zendeavor> !pf function <greybot> http://mywiki.wooledge.org/BashPitfalls#pf25 -- Don't do this! -- function foo() <tyrmored> i know it's bashism, but is it bad practice <tyrmored> yeah i know that much <tyrmored> (no parens, that is) <zendeavor> it's not necessarily a bashism, but the function keyword has implications in other shells <zendeavor> and, perhaps someday in the future, for bash as well <tyrmored> hmm, so i should use this syntax even if the scripts are explicitly bash? <ffio> hi zendeavor :) <zendeavor> you should use foo() { echo bar; } <tyrmored> rightoh <zendeavor> no surprising behaviour that way, ever <tyrmored> makes sense <zendeavor> it won't matter *much* but element of least surprise | ||||
* | Unset helper functions for ls/grep setup | Tom Ryder | 2013-07-21 | 1 | -0/+3 |
| | | | | These are no longer needed after the alias has been established. | ||||
* | Remove trailing spaces before closing parentheses | Tom Ryder | 2013-07-21 | 1 | -1/+1 |
| | | | | I was only doing this to work around a Bash syntax highlighting bug | ||||
* | Just check ls/grep option calls once | Tom Ryder | 2013-06-24 | 1 | -3/+4 |
| | |||||
* | Massive overhaul of structure for Bash files | Tom Ryder | 2013-06-20 | 1 | -0/+15 |
* No longer using .bash_logout * No longer using .bash_profile, using POSIX-compliant .profile * instead; in particular, moved most of environment settings into .profile * Moved some of the separable functionality of both .profile and .bashrc into subdirectories (some scripts shared, some not) * Tidied implementation of ls/grep aliases * Updated install script to reflect all of the above |