path: root/sh
AgeCommit message (Collapse)AuthorFilesLines
2018-02-24Silence errors from missing mesg(1)Tom Ryder1-1/+1
Funtoo Linux does not include this tool by default. It's not important enough to raise the error message on every login.
2018-01-15Quote EDITOR/VISUAL assignments for clarityTom Ryder2-4/+4
This appeases ShellCheck 0.4.7, which is fretting that I meant a command expansion. I didn't, but it seems a bit nicer to quote these anyway. In sh/profile.d/editor.sh line 4: EDITOR=ed ^-- SC2209: Use var=$(command) to assign output (or quote to assign string). In sh/profile.d/editor.sh line 22: EDITOR=ex ^-- SC2209: Use var=$(command) to assign output (or quote to assign string). In sh/profile.d/visual.sh line 2: VISUAL=vi ^-- SC2209: Use var=$(command) to assign output (or quote to assign string).
2018-01-15Explicitly ignore uninteresting tree(1) optsTom Ryder1-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.
2017-12-29Remove --batch option and wrapper for gpg(1)Tom Ryder1-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.
2017-11-13Strip trailing whitespaceTom Ryder1-1/+1
2017-07-28Merge branch 'master' into port/bsd/freebsdTom Ryder13-47/+15
2017-07-26Adjust linebreak behaviour around downloads checkTom Ryder1-1/+4
2017-07-11Gracefully handle two failed tput color callsTom Ryder3-3/+3
2017-07-01Put local gamesdir at end of PATHTom Ryder1-1/+1
So that if anything actually important has the same name, that's used instead
2017-06-30Remove env(1) sortingTom Ryder1-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.
2017-06-24Use short hostname in default promptTom Ryder1-1/+1
2017-06-23Fix up an error messageTom Ryder1-1/+1
2017-06-23Add ed() options file checkTom Ryder1-0/+4
2017-06-19Remove user@ prefix from promptTom Ryder1-2/+2
2017-06-18More segmentation/tidyingTom Ryder2-9/+0
2017-06-18Break plenv stuff into its own targetTom Ryder2-22/+0
2017-06-02Merge branch 'master' into port/bsd/freebsdTom Ryder12-324/+213
2017-05-31Conditions for downloads.shTom Ryder1-0/+15
2017-05-31Some extra newlinesTom Ryder1-1/+1
2017-05-31Add "downloads.sh" profile eventTom Ryder1-0/+13
Looks for ~/.downloads, checks each named dir, if there are any files in it, warns you once per dir including a count. This is to prompt me into sorting my downloads directory.
2017-05-27Simplify rd() a lotTom Ryder1-35/+10
Including removing the pesky subshell
2017-05-27Revert "Remove redundant `|| return` from gd()"Tom Ryder1-1/+1
This reverts commit 1302b279bf2b1b2ae76ea8251a32e480d64f2f7a. This was added because of Shellcheck being fussy
2017-05-27More error-resistant sd()Tom Ryder3-32/+62
2017-05-27Remove redundant `|| return` from gd()Tom Ryder1-1/+1
It will do that implicitly anyway
2017-05-27Use -z rather than !-nTom Ryder1-1/+1
2017-05-27Add safety to bd()Tom Ryder1-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
2017-05-27More refinements to bd()Tom Ryder1-28/+11
2017-05-26Remove ad()Tom Ryder1-80/+0
It has no real advantages over and isn't as clever as just cd /a*/b*/c*
2017-05-26Tidy/golf gt() down a bitTom Ryder1-15/+13
2017-05-26Remove hare-brained no-op lineTom Ryder1-1/+0
2017-05-26Still tinkering with ?d.sh scriptsTom Ryder3-33/+20
2017-05-26Reimplement ud()Tom Ryder1-32/+30
More fault-tolerant and no subshell or temporary vars
2017-05-26More bd() improvementsTom Ryder1-12/+29
Including rigorous trailing-slash handling
2017-05-26Correct default behaviour for bd() with no argsTom Ryder1-6/+9
2017-05-26Reimplement sd() without subshellTom Ryder2-42/+44
2017-05-25Even terser/nicer bd()Tom Ryder1-7/+7
2017-05-25Shorter/saner implementation for bd()Tom Ryder1-56/+29
Avoids subshell mess and consequent trailing-space workaround
2017-05-24Correct gt() error outputTom Ryder1-1/+1
2017-05-23Remove mysql() functionTom Ryder1-25/+0
Clumsy interaction too close to default behaviour anyway
2017-05-19Merge branch 'master' into port/bsd/freebsdTom Ryder9-27/+32
2017-05-14Just use whichever vi(1) we need as VISUALTom Ryder1-6/+2
This avoids an unwanted situation on e.g. Debian minimal where the default Vi implementation is a stripped-down Vim that doesn't use vim(1) as a name, so stuff like sudoedit(8) breaks looking for it and falls back on EDITOR.
2017-05-14Move exm(1df) test into EDITOR selectionTom Ryder1-4/+13
Merely checking for vim(1) is a poor test; we specifically need to know if the ex(1) implementation is Vim, so test it while making the EDITOR decision.
2017-04-12Use more logical ~/.cache subpathTom Ryder7-17/+17
2017-04-07Merge branch 'master' into port/bsd/freebsdTom Ryder1-2/+4
2017-04-06Make -x in ls() conditional on terminal outputTom Ryder1-2/+4
Mimics behaviour of GNU ls(1) and probably other implementations too
2017-03-29Merge branch 'master' into port/bsd/freebsdTom Ryder3-1/+56
2017-03-29Remove SC2030 ignore for path logicTom Ryder1-1/+0
Can't find where this was fixed
2017-03-29Add lgt()Tom Ryder1-0/+28
2017-03-29Add gt() (go to)Tom Ryder1-0/+28
2017-03-24Merge branch 'master' into port/bsd/freebsdTom Ryder2-9/+10