Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 thorough quoting | Tom Ryder | 2013-08-05 | 2 | -5/+5 |
| | |||||
* | Avoid using builtin names for promptt function arg | Tom Ryder | 2013-08-05 | 1 | -3/+3 |
| | |||||
* | Don't check for tput | Tom Ryder | 2013-08-05 | 1 | -19/+11 |
| | | | | It's specified by POSIX, so probably overkill | ||||
* | Improve quoting around expansions | Tom Ryder | 2013-08-05 | 1 | -14/+14 |
| | |||||
* | Improve color detection logic for prompt/ls/grep | Tom Ryder | 2013-08-05 | 3 | -14/+26 |
| | | | | Use tput properly and only when found and necessary | ||||
* | Add sprunge script for my convenience | Tom Ryder | 2013-08-04 | 1 | -0/+6 |
| | |||||
* | Restore stderr redirection for command -v | Tom Ryder | 2013-08-02 | 3 | -4/+4 |
| | | | | | Some older versions of Bash seem to spit out "not found" errors for command -v on stderr | ||||
* | Combine conditionals in logout script | Tom Ryder | 2013-07-31 | 1 | -3/+2 |
| | |||||
* | Improve comments on shell scripts | Tom Ryder | 2013-07-31 | 3 | -4/+57 |
| | |||||
* | Trailing whitespace fixes | Tom Ryder | 2013-07-31 | 1 | -1/+1 |
| | |||||
* | Speed up SVN prompt with only one call to svn info | Tom Ryder | 2013-07-31 | 1 | -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 existence | Tom Ryder | 2013-07-31 | 2 | -3/+9 |
| | |||||
* | Stop ignoring error output from setup commands | Tom Ryder | 2013-07-31 | 3 | -4/+4 |
| | |||||
* | Use standard structure for if/for in shell | Tom Ryder | 2013-07-31 | 6 | -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 quotes | Tom Ryder | 2013-07-30 | 2 | -4/+4 |
| | |||||
* | Fix grep/ls aliasing for efficiency/correctness | Tom Ryder | 2013-07-30 | 2 | -8/+8 |
| | | | | 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 | ||||
* | Use integer declarations in prompt function | Tom Ryder | 2013-07-30 | 1 | -2/+2 |
| | |||||
* | More portable non-surprise syntax for functions | Tom Ryder | 2013-07-30 | 5 | -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 newline | Tom Ryder | 2013-07-21 | 1 | -0/+1 |
| | |||||
* | Unset helper functions for ls/grep setup | Tom Ryder | 2013-07-21 | 2 | -3/+9 |
| | | | | These are no longer needed after the alias has been established. | ||||
* | Cleaner argument count tests in cd function | Tom Ryder | 2013-07-21 | 1 | -4/+2 |
| | |||||
* | Remove trailing spaces before closing parentheses | Tom Ryder | 2013-07-21 | 3 | -8/+8 |
| | | | | I was only doing this to work around a Bash syntax highlighting bug | ||||
* | Move Bash options into separate file | Tom Ryder | 2013-07-21 | 2 | -38/+39 |
| | |||||
* | Improve comments for aliases | Tom Ryder | 2013-07-20 | 1 | -7/+6 |
| | |||||
* | Move aliases into separate file | Tom Ryder | 2013-07-20 | 2 | -15/+15 |
| | |||||
* | May as well start versioning logout file | Tom Ryder | 2013-07-19 | 1 | -0/+5 |
| | |||||
* | Ignore error messages from mailwarn option | Tom Ryder | 2013-07-18 | 1 | -1/+1 |
| | |||||
* | Tidier layout, start using .bash_profile again | Tom Ryder | 2013-07-12 | 2 | -1/+7 |
| | | | | Shouldn't refer to Bash stuff in Bourne shell profile | ||||
* | Local variable no longer needed | Tom Ryder | 2013-07-03 | 1 | -1/+1 |
| | |||||
* | Force status check to work around cache problem | Tom Ryder | 2013-07-03 | 1 | -0/+1 |
| | |||||
* | Use exit values directly for these calls | Tom Ryder | 2013-07-03 | 1 | -2/+2 |
| | |||||
* | More compatible branch calculation | Tom Ryder | 2013-07-03 | 1 | -2/+3 |
| | | | | Still using some old Debian Squeeze servers | ||||
* | Much smarter Git branch finding | Tom Ryder | 2013-07-03 | 1 | -2/+3 |
| | |||||
* | Much-improved git prompt function | Tom Ryder | 2013-07-03 | 1 | -3/+12 |
| | | | | | | Thanks to @necolas: <https://github.com/necolas/dotfiles/blob/master/bash/bash_prompt#L60-L111> | ||||
* | Somehow misplaced my "shut up mail" rules | Tom Ryder | 2013-06-25 | 1 | -0/+4 |
| | |||||
* | Just check ls/grep option calls once | Tom Ryder | 2013-06-24 | 2 | -4/+6 |
| | |||||
* | Fix broken return value prompt element | Tom Ryder | 2013-06-24 | 1 | -2/+2 |
| | |||||
* | Use correct Bash arguments expansion | Tom Ryder | 2013-06-23 | 1 | -2/+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 | 9 | -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 variable | Tom Ryder | 2013-06-20 | 1 | -4/+0 |
| | |||||
* | Remove unneeded profile variable | Tom Ryder | 2013-06-19 | 1 | -3/+0 |
| | |||||
* | Set up my environment vars correctly | Tom Ryder | 2013-06-19 | 3 | -30/+44 |
| |