Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change cd() into POSIX shell script | Tom Ryder | 2016-08-19 | 1 | -32/+0 |
| | |||||
* | Quote expansions within parameter expansions | Tom Ryder | 2016-07-15 | 1 | -1/+1 |
| | | | | | | I made the incorrect assumption that it was safe not to do this; expansions that include glob characters, for example, can cause problems. | ||||
* | Remove blank lines at end of files | Tom Ryder | 2016-03-28 | 1 | -1/+0 |
| | |||||
* | 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 | ||||
* | Remove unneeded 'in "$@"' for argument iteration | Tom Ryder | 2015-06-26 | 1 | -1/+1 |
| | | | | for defaults to iterating over the arguments | ||||
* | Exit with 2 on usage errors like Bash builtins | Tom Ryder | 2015-05-29 | 1 | -1/+1 |
| | |||||
* | Use FUNCNAME rather than hardcoding helper funcs | Tom Ryder | 2015-04-29 | 1 | -1/+2 |
| | |||||
* | Use case statement; cleaner | Tom Ryder | 2014-10-14 | 1 | -7/+13 |
| | |||||
* | Simplify cd wrapper | Tom Ryder | 2014-10-14 | 1 | -10/+10 |
| | |||||
* | Use one-arg form of printf for static strings | Tom Ryder | 2014-07-02 | 1 | -1/+1 |
| | |||||
* | Don't break up short lines | Tom Ryder | 2014-02-19 | 1 | -2/+1 |
| | |||||
* | Use space before semicolon as command separator | Tom Ryder | 2014-02-10 | 1 | -5/+5 |
| | |||||
* | Today has just not been my day | Tom Ryder | 2013-11-04 | 1 | -3/+3 |
| | |||||
* | Forgot to stop using absolute params | Tom Ryder | 2013-11-04 | 1 | -3/+4 |
| | |||||
* | More general approach to options for cd wrapper | Tom Ryder | 2013-11-04 | 1 | -6/+11 |
| | |||||
* | Fix newline error in cd error print | Tom Ryder | 2013-10-31 | 1 | -1/+1 |
| | |||||
* | Better syntax for array append | Tom Ryder | 2013-09-09 | 1 | -1/+1 |
| | |||||
* | Forgot a couple of array declarations | Tom Ryder | 2013-09-01 | 1 | -1/+2 |
| | |||||
* | More sensible use of local | Tom Ryder | 2013-09-01 | 1 | -2/+1 |
| | | | | | | 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`. | ||||
* | Use single quotes for printf | Tom Ryder | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Initialise OPTIND in cd() function | Tom Ryder | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Quote rhs of [[ $a == $b ]] to stop globbing | Tom Ryder | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Remove unneeded $ from arithmetic expansion | Tom Ryder | 2013-08-25 | 1 | -1/+1 |
| | |||||
* | Standardise use of printf | Tom Ryder | 2013-08-21 | 1 | -1/+1 |
| | |||||
* | Alias cd directly rather than via alias | Tom Ryder | 2013-08-20 | 1 | -2/+1 |
| | |||||
* | Fix a few variable contamination issues | Tom Ryder | 2013-08-20 | 1 | -0/+1 |
| | |||||
* | Remove unnecessary quoting in simple assignments | Tom Ryder | 2013-08-20 | 1 | -1/+1 |
| | |||||
* | Remove unneeded quoting within [[ ]] | Tom Ryder | 2013-08-20 | 1 | -1/+1 |
| | |||||
* | Use double-quoted printf strings for newlines | Tom Ryder | 2013-08-18 | 1 | -1/+1 |
| | | | | Just for clarity/syntax highlighting | ||||
* | Direct cd errors to stderr | Tom Ryder | 2013-08-18 | 1 | -1/+1 |
| | |||||
* | Use arithmetic expansion for argument count test | Tom Ryder | 2013-08-18 | 1 | -1/+1 |
| | |||||
* | Remove extraneous quoting | Tom Ryder | 2013-08-18 | 1 | -3/+3 |
| | | | | Overkill for expansions that will be integers by definition | ||||
* | Practicing writing half-decent Bash | Tom Ryder | 2013-08-18 | 1 | -4/+4 |
| | | | | | Use array variable to collect options (appending with a pre-3.01 compatible syntax) | ||||
* | Test for substring presence in cd function | Tom Ryder | 2013-08-05 | 1 | -1/+6 |
| | |||||
* | Quote expansions in cd function | Tom Ryder | 2013-08-05 | 1 | -2/+2 |
| | |||||
* | Sort options alphabetically | Tom Ryder | 2013-08-05 | 1 | -1/+1 |
| | |||||
* | Inline while loop in cd function with do | Tom Ryder | 2013-08-05 | 1 | -2/+1 |
| | |||||
* | Initialise cd options to empty string | Tom Ryder | 2013-08-05 | 1 | -1/+2 |
| | |||||
* | More portable non-surprise syntax for functions | Tom Ryder | 2013-07-30 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | <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 | ||||
* | Cleaner argument count tests in cd function | Tom Ryder | 2013-07-21 | 1 | -4/+2 |
| | |||||
* | Preserve options for cd alias | Tom Ryder | 2013-06-23 | 1 | -4/+10 |
| | | | | Also better explanatory notes | ||||
* | Massive overhaul of structure for Bash files | Tom Ryder | 2013-06-20 | 1 | -0/+11 |
* 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 |