aboutsummaryrefslogtreecommitdiff
path: root/bash
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Unset helper functions for ls/grep setupTom Ryder2013-07-212-3/+9
| | | | These are no longer needed after the alias has been established.
* Cleaner argument count tests in cd functionTom Ryder2013-07-211-4/+2
|
* Remove trailing spaces before closing parenthesesTom Ryder2013-07-213-8/+8
| | | | I was only doing this to work around a Bash syntax highlighting bug
* Move Bash options into separate fileTom Ryder2013-07-212-38/+39
|
* Improve comments for aliasesTom Ryder2013-07-201-7/+6
|
* Move aliases into separate fileTom Ryder2013-07-202-15/+15
|
* May as well start versioning logout fileTom Ryder2013-07-191-0/+5
|
* Ignore error messages from mailwarn optionTom Ryder2013-07-181-1/+1
|
* Tidier layout, start using .bash_profile againTom Ryder2013-07-122-1/+7
| | | | Shouldn't refer to Bash stuff in Bourne shell profile
* Local variable no longer neededTom Ryder2013-07-031-1/+1
|
* Force status check to work around cache problemTom Ryder2013-07-031-0/+1
|
* Use exit values directly for these callsTom Ryder2013-07-031-2/+2
|
* More compatible branch calculationTom Ryder2013-07-031-2/+3
| | | | Still using some old Debian Squeeze servers
* Much smarter Git branch findingTom Ryder2013-07-031-2/+3
|
* Much-improved git prompt functionTom Ryder2013-07-031-3/+12
| | | | | | Thanks to @necolas: <https://github.com/necolas/dotfiles/blob/master/bash/bash_prompt#L60-L111>
* Somehow misplaced my "shut up mail" rulesTom Ryder2013-06-251-0/+4
|
* Just check ls/grep option calls onceTom Ryder2013-06-242-4/+6
|
* Fix broken return value prompt elementTom Ryder2013-06-241-2/+2
|
* Use correct Bash arguments expansionTom Ryder2013-06-231-2/+2
|
* Preserve options for cd aliasTom Ryder2013-06-231-4/+10
| | | | Also better explanatory notes
* Massive overhaul of structure for Bash filesTom Ryder2013-06-209-222/+167
| | | | | | | | | | | * 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
* Another unneeded environment variableTom Ryder2013-06-201-4/+0
|
* Remove unneeded profile variableTom Ryder2013-06-191-3/+0
|
* Set up my environment vars correctlyTom Ryder2013-06-193-30/+44
|