aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
Commit message (Collapse)AuthorAgeFilesLines
* Change cd() into POSIX shell scriptTom Ryder2016-08-191-32/+0
|
* Quote expansions within parameter expansionsTom Ryder2016-07-151-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 filesTom Ryder2016-03-281-1/+0
|
* Switch to a faster method of array appendingTom Ryder2015-12-141-1/+1
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* Remove unneeded 'in "$@"' for argument iterationTom Ryder2015-06-261-1/+1
| | | | for defaults to iterating over the arguments
* Exit with 2 on usage errors like Bash builtinsTom Ryder2015-05-291-1/+1
|
* Use FUNCNAME rather than hardcoding helper funcsTom Ryder2015-04-291-1/+2
|
* Use case statement; cleanerTom Ryder2014-10-141-7/+13
|
* Simplify cd wrapperTom Ryder2014-10-141-10/+10
|
* Use one-arg form of printf for static stringsTom Ryder2014-07-021-1/+1
|
* Don't break up short linesTom Ryder2014-02-191-2/+1
|
* Use space before semicolon as command separatorTom Ryder2014-02-101-5/+5
|
* Today has just not been my dayTom Ryder2013-11-041-3/+3
|
* Forgot to stop using absolute paramsTom Ryder2013-11-041-3/+4
|
* More general approach to options for cd wrapperTom Ryder2013-11-041-6/+11
|
* Fix newline error in cd error printTom Ryder2013-10-311-1/+1
|
* Better syntax for array appendTom Ryder2013-09-091-1/+1
|
* Forgot a couple of array declarationsTom Ryder2013-09-011-1/+2
|
* More sensible use of localTom Ryder2013-09-011-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 printfTom Ryder2013-08-251-1/+1
|
* Initialise OPTIND in cd() functionTom Ryder2013-08-251-1/+1
|
* Quote rhs of [[ $a == $b ]] to stop globbingTom Ryder2013-08-251-1/+1
|
* Remove unneeded $ from arithmetic expansionTom Ryder2013-08-251-1/+1
|
* Standardise use of printfTom Ryder2013-08-211-1/+1
|
* Alias cd directly rather than via aliasTom Ryder2013-08-201-2/+1
|
* Fix a few variable contamination issuesTom Ryder2013-08-201-0/+1
|
* Remove unnecessary quoting in simple assignmentsTom Ryder2013-08-201-1/+1
|
* Remove unneeded quoting within [[ ]]Tom Ryder2013-08-201-1/+1
|
* Use double-quoted printf strings for newlinesTom Ryder2013-08-181-1/+1
| | | | Just for clarity/syntax highlighting
* Direct cd errors to stderrTom Ryder2013-08-181-1/+1
|
* Use arithmetic expansion for argument count testTom Ryder2013-08-181-1/+1
|
* Remove extraneous quotingTom Ryder2013-08-181-3/+3
| | | | Overkill for expansions that will be integers by definition
* Practicing writing half-decent BashTom Ryder2013-08-181-4/+4
| | | | | Use array variable to collect options (appending with a pre-3.01 compatible syntax)
* Test for substring presence in cd functionTom Ryder2013-08-051-1/+6
|
* Quote expansions in cd functionTom Ryder2013-08-051-2/+2
|
* Sort options alphabeticallyTom Ryder2013-08-051-1/+1
|
* Inline while loop in cd function with doTom Ryder2013-08-051-2/+1
|
* Initialise cd options to empty stringTom Ryder2013-08-051-1/+2
|
* More portable non-surprise syntax for functionsTom Ryder2013-07-301-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 functionTom Ryder2013-07-211-4/+2
|
* Preserve options for cd aliasTom Ryder2013-06-231-4/+10
| | | | Also better explanatory notes
* Massive overhaul of structure for Bash filesTom Ryder2013-06-201-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