aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
Commit message (Collapse)AuthorAgeFilesLines
* Prevent me from using `which`Tom Ryder2019-06-101-0/+4
|
* Fix up a few cosmetic shell anti-patternsTom Ryder2019-03-291-1/+1
|
* Add a cheeky error message to sd()Tom Ryder2018-12-311-0/+6
|
* Strip trailing slashes from sd() targetTom Ryder2018-12-311-0/+8
|
* Correct error message from sd()Tom Ryder2018-12-311-1/+1
|
* Two-space sentences in shell commentsTom Ryder2018-12-277-9/+9
|
* Follow ShellCheck's recommendation of -z over !-nTom Ryder2018-12-171-1/+1
| | | | I think !-n is a little clearer, but -z is OK.
* Adjust PS1-PS4 resetTom Ryder2018-12-171-5/+12
|
* Use exec for clearer subshell semanticsTom Ryder2018-12-171-1/+1
|
* Use `command` consistently, silence ShellCheckTom Ryder2018-12-1710-11/+21
| | | | | | | | | | ShellCheck (SC2164) is upset about these `cd` commands where the return type isn't being checked, but they're all by design, as they're the last command in the function, and thereby constitute the function's return value implicitly. Otherwise, this commit changes the shrc.d and profile.d subfiles to use the `command` wrapper only where it's actually needed.
* Refactor some conditionalsTom Ryder2018-12-119-36/+65
|
* Refactor "path list" not to require a subshellTom Ryder2018-12-111-8/+9
|
* Remove a lot of alignment spacingTom Ryder2018-11-231-2/+2
|
* Use case statement for sudo -v switchingTom Ryder2018-10-241-1/+4
| | | | This is slightly more idiomatic shell.
* Add e() and v() wrappersTom Ryder2018-08-072-0/+8
|
* Explicitly ignore uninteresting tree(1) optsTom Ryder2018-01-151-0/+1
| | | | | | | | ShellCheck 0.4.7 complained about this: In sh/shrc.d/tree.sh line 12: case $opt in ^-- SC2220: Invalid flags are not handled. Add a *) case.
* Remove --batch option and wrapper for gpg(1)Tom Ryder2017-12-291-10/+0
| | | | | | | | This was originally added to cut the decryption boilerplate, which no longer seems to be an issue; I think that --quiet may be correctly blocking it now. Even without this, it caused more problems than it solved when gpg(1) genuinely did need user interaction from me, for example for --update-trustdb.
* Strip trailing whitespaceTom Ryder2017-11-131-1/+1
|
* Merge branch 'master' into port/bsd/freebsdTom Ryder2017-07-289-35/+10
|\
| * Gracefully handle two failed tput color callsTom Ryder2017-07-113-3/+3
| |
| * Remove env(1) sortingTom Ryder2017-06-301-8/+0
| | | | | | | | | | Not worth the potential confusion. If I want nice sorted information I can either pipe it through sort myself, or use `declare -px` in Bash.
| * Use short hostname in default promptTom Ryder2017-06-241-1/+1
| |
| * Fix up an error messageTom Ryder2017-06-231-1/+1
| |
| * Add ed() options file checkTom Ryder2017-06-231-0/+4
| |
| * Remove user@ prefix from promptTom Ryder2017-06-191-2/+2
| |
| * More segmentation/tidyingTom Ryder2017-06-181-4/+0
| |
| * Break plenv stuff into its own targetTom Ryder2017-06-181-17/+0
| |
* | Merge branch 'master' into port/bsd/freebsdTom Ryder2017-06-0211-324/+185
|\|
| * Simplify rd() a lotTom Ryder2017-05-271-35/+10
| | | | | | | | Including removing the pesky subshell
| * Revert "Remove redundant `|| return` from gd()"Tom Ryder2017-05-271-1/+1
| | | | | | | | | | | | This reverts commit 1302b279bf2b1b2ae76ea8251a32e480d64f2f7a. This was added because of Shellcheck being fussy
| * More error-resistant sd()Tom Ryder2017-05-273-32/+62
| |
| * Remove redundant `|| return` from gd()Tom Ryder2017-05-271-1/+1
| | | | | | | | It will do that implicitly anyway
| * Use -z rather than !-nTom Ryder2017-05-271-1/+1
| |
| * Add safety to bd()Tom Ryder2017-05-271-1/+2
| | | | | | | | | | | | Handle case if PWD does not start with a slash--a big "Shouldn't Happen", but easy enough to be worth handling, since it would loop infinitely otherwise
| * More refinements to bd()Tom Ryder2017-05-271-28/+11
| |
| * Remove ad()Tom Ryder2017-05-261-80/+0
| | | | | | | | It has no real advantages over and isn't as clever as just cd /a*/b*/c*
| * Tidy/golf gt() down a bitTom Ryder2017-05-261-15/+13
| |
| * Remove hare-brained no-op lineTom Ryder2017-05-261-1/+0
| |
| * Still tinkering with ?d.sh scriptsTom Ryder2017-05-263-33/+20
| |
| * Reimplement ud()Tom Ryder2017-05-261-32/+30
| | | | | | | | More fault-tolerant and no subshell or temporary vars
| * More bd() improvementsTom Ryder2017-05-261-12/+29
| | | | | | | | Including rigorous trailing-slash handling
| * Correct default behaviour for bd() with no argsTom Ryder2017-05-261-6/+9
| |
| * Reimplement sd() without subshellTom Ryder2017-05-262-42/+44
| |
| * Even terser/nicer bd()Tom Ryder2017-05-251-7/+7
| |
| * Shorter/saner implementation for bd()Tom Ryder2017-05-251-56/+29
| | | | | | | | Avoids subshell mess and consequent trailing-space workaround
| * Correct gt() error outputTom Ryder2017-05-241-1/+1
| |
| * Remove mysql() functionTom Ryder2017-05-231-25/+0
| | | | | | | | Clumsy interaction too close to default behaviour anyway
* | Merge branch 'master' into port/bsd/freebsdTom Ryder2017-05-196-16/+16
|\|
| * Use more logical ~/.cache subpathTom Ryder2017-04-126-16/+16
| |
* | Merge branch 'master' into port/bsd/freebsdTom Ryder2017-04-071-2/+4
|\|