aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrapper for pushd defaults to $HOME if no argsTom Ryder2013-08-201-0/+5
|
* Alias cd directly rather than via aliasTom Ryder2013-08-201-2/+1
|
* Better var names for subfile config sourcingTom Ryder2013-08-201-3/+3
|
* Fix a few variable contamination issuesTom Ryder2013-08-202-0/+2
|
* More conservative expansion for dotfile pathsTom Ryder2013-08-202-3/+3
|
* Turn off control character echo with sttyTom Ryder2013-08-201-2/+2
|
* Remove trailing semicolon from sprunge functionTom Ryder2013-08-201-1/+1
|
* Use better test for interactive shellTom Ryder2013-08-201-1/+1
|
* Remove unnecessary quoting in simple assignmentsTom Ryder2013-08-204-28/+26
|
* Remove unneeded quoting within [[ ]]Tom Ryder2013-08-206-14/+14
|
* Use arithmetic expression for argument countTom Ryder2013-08-191-1/+1
|
* Merge integer declarations onto one lineTom Ryder2013-08-191-2/+1
|
* Use arithmetic expressions in prompt functionTom Ryder2013-08-191-2/+3
|
* Remove unnecessary quotingTom Ryder2013-08-192-2/+2
|
* Remove unnecessary variable bracing in .bashrcTom Ryder2013-08-191-2/+2
|
* Move --color option for grep to end of aliasTom Ryder2013-08-181-7/+7
|
* Add some comments to the ls/grep alias functionsTom Ryder2013-08-182-0/+24
|
* Use arithmetic expression for color space testsTom Ryder2013-08-182-2/+4
|
* Use arrays to collect options for ls/grep aliasesTom Ryder2013-08-182-8/+9
|
* 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 thorough quotingTom Ryder2013-08-052-5/+5
|
* Avoid using builtin names for promptt function argTom Ryder2013-08-051-3/+3
|
* Don't check for tputTom Ryder2013-08-051-19/+11
| | | | It's specified by POSIX, so probably overkill
* Improve quoting around expansionsTom Ryder2013-08-051-14/+14
|
* Improve color detection logic for prompt/ls/grepTom Ryder2013-08-053-14/+26
| | | | Use tput properly and only when found and necessary
* Add sprunge script for my convenienceTom Ryder2013-08-041-0/+6
|
* Restore stderr redirection for command -vTom Ryder2013-08-023-4/+4
| | | | | Some older versions of Bash seem to spit out "not found" errors for command -v on stderr
* Combine conditionals in logout scriptTom Ryder2013-07-311-3/+2
|
* Improve comments on shell scriptsTom Ryder2013-07-313-4/+57
|
* Trailing whitespace fixesTom Ryder2013-07-311-1/+1
|
* Speed up SVN prompt with only one call to svn infoTom Ryder2013-07-311-5/+6
| | | | | Keep the output of `svn info` in a new local variable and use Bash herestrings to read the repository URL and root from that variable
* Explicitly check for setup command existenceTom Ryder2013-07-312-3/+9
|
* Stop ignoring error output from setup commandsTom Ryder2013-07-313-4/+4
|
* Use standard structure for if/for in shellTom Ryder2013-07-316-38/+66
| | | | | | | | | | | | | | | | | | | 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 quotesTom Ryder2013-07-302-4/+4
|
* Fix grep/ls aliasing for efficiency/correctnessTom Ryder2013-07-302-8/+8
| | | | Avoiding the use of echo, using builtins whereever possible
* Use clearer option name for dircolors callTom Ryder2013-07-301-1/+1
|
* Fix bug in ls color managementTom Ryder2013-07-301-1/+1
| | | | Ignoring output for an eval call? Real smart, Tom
* Use integer declarations in prompt functionTom Ryder2013-07-301-2/+2
|
* More portable non-surprise syntax for functionsTom Ryder2013-07-305-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | <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
* Dropped a newlineTom Ryder2013-07-211-0/+1
|