Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switch to a faster method of array appending | Tom Ryder | 2015-12-14 | 1 | -1/+1 |
| | | | | | 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 | -13/+15 |
| | | | | | GREP_OPTIONS doesn't work if it's not exported, which ought to have been painfully obvious. Oh well. | ||||
* | 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 | -1/+3 |
| | |||||
* | Force integer type on color check | Tom Ryder | 2015-05-31 | 1 | -1/+1 |
| | |||||
* | Overhaul grep(1) and ls(1) options and wrappers | Tom Ryder | 2015-05-30 | 1 | -25/+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 | -1/+1 |
| | |||||
* | Use space before semicolon as command separator | Tom Ryder | 2014-02-10 | 1 | -1/+1 |
| | |||||
* | Move LSCOLORS export into profile | Tom Ryder | 2014-02-05 | 1 | -5/+0 |
| | | | | | dircolors(1) exports its LS_COLORS var, so it's pointless reloading it on every non-login shell | ||||
* | Fix some hare-brained comments | Tom Ryder | 2013-09-15 | 1 | -1/+1 |
| | |||||
* | Some more array syntax fixes | Tom Ryder | 2013-09-10 | 1 | -1/+1 |
| | |||||
* | 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`. | ||||
* | 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 |
| | |||||
* | Use hash to test for dircolors existence | Tom Ryder | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | 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 | -2/+2 |
| | |||||
* | Add some comments to the ls/grep alias functions | Tom Ryder | 2013-08-18 | 1 | -0/+9 |
| | |||||
* | 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 | -3/+3 |
| | |||||
* | 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 | ||||
* | Restore stderr redirection for command -v | Tom Ryder | 2013-08-02 | 1 | -1/+1 |
| | | | | | Some older versions of Bash seem to spit out "not found" errors for command -v on stderr | ||||
* | Improve comments on shell scripts | Tom Ryder | 2013-07-31 | 1 | -1/+1 |
| | |||||
* | Explicitly check for setup command existence | Tom Ryder | 2013-07-31 | 1 | -1/+3 |
| | |||||
* | Stop ignoring error output from setup commands | Tom Ryder | 2013-07-31 | 1 | -1/+1 |
| | |||||
* | Use standard structure for if/for in shell | Tom Ryder | 2013-07-31 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | 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 | -3/+3 |
| | | | | Avoiding the use of echo, using builtins whereever possible | ||||
* | Use clearer option name for dircolors call | Tom Ryder | 2013-07-30 | 1 | -1/+1 |
| | |||||
* | Fix bug in ls color management | Tom Ryder | 2013-07-30 | 1 | -1/+1 |
| | | | | Ignoring output for an eval call? Real smart, Tom | ||||
* | 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 | -3/+6 |
| | | | | 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 | -1/+2 |
| | |||||
* | Massive overhaul of structure for Bash files | Tom Ryder | 2013-06-20 | 1 | -0/+14 |
* 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 |