path: root/sh
AgeCommit message (Collapse)AuthorFilesLines
11 daysUse inline integers rather than bit shiftingTom Ryder1-1/+1
Syntax highlighting doesn't deal with it well
2020-06-23Use better location for verse cacheTom Ryder1-5/+5
2020-06-23Use blank value for default fortunesTom Ryder1-1/+1
2020-06-23Simplify welcome.sh feature testTom Ryder1-2/+1
2020-06-23Apply XDG basedirs to welcome.shTom Ryder1-7/+12
2020-06-10Use XDG path for login welcome configTom Ryder1-1/+1
2020-06-10Adjust ~/.hushlogin test in login welcome scriptTom Ryder1-2/+2
2020-05-12Move systemd editor setting to after visualTom Ryder2-4/+6
Loaded out of order otherwise, so doesn't get set.
2020-05-12Try a compatibility switch on vi/vimTom Ryder1-2/+7
2020-05-02Force unwanted --quoting-style option to ls(1) offTom Ryder2-0/+5
2020-04-28Correct misplaced `exit` call in .profile.d fileTom Ryder1-1/+1
This was closing my connection immediately when I logged in interactively to any machine without systemd!
2020-04-27Set systemctl editor to vi rather than edTom Ryder1-0/+4
2019-06-10Prevent me from using `which`Tom Ryder1-0/+4
2019-03-29Fix up a few cosmetic shell anti-patternsTom Ryder1-1/+1
2019-01-07Return to vi as default visual editorTom Ryder1-7/+2
This is getting in the way of my work a bit too much. I'm still learning how to use it, but throwing myself into the deep end at this point turned out to be a bad idea.
2019-01-04Further attempts at sane Emacs VISUAL settingTom Ryder1-21/+5
2019-01-02Block stderr from emacs daemon startupTom Ryder1-1/+1
2019-01-02Use short switches for emacs server pgrepTom Ryder1-2/+1
Turns out the pgrep from procps version 3.2.8 doesn't support these longer options.
2019-01-02Add emacsclient logic to $VISUAL setTom Ryder1-4/+20
2019-01-01Switch to using GNU Emacs on development machinesTom Ryder1-2/+8
> Andromeda, by Perseus sav'd and wed, > Hanker'd each day to see the Gorgon's head: > Till o'er a fount he held it, bade her lean, > And mirror'd in the wave was safely seen > That death she liv'd by. > Let not thine eyes know > Any forbidden thing itself, although > It once should save as well as kill: but be > Its shadow upon life enough for thee. > > --Dante Gabriel Rossetti
2018-12-31Add clarifying commentTom Ryder1-1/+1
2018-12-31Translate a short-circuit into a conditionalTom Ryder1-1/+3
I only want to use the `||` short-circuits for control flow changes (return, continue, break etc).
2018-12-31Add a cheeky error message to sd()Tom Ryder1-0/+6
2018-12-31Strip trailing slashes from sd() targetTom Ryder1-0/+8
2018-12-31Correct error message from sd()Tom Ryder1-1/+1
2018-12-27Two-space sentences in shell commentsTom Ryder8-10/+10
2018-12-17Follow ShellCheck's recommendation of -z over !-nTom Ryder2-2/+2
I think !-n is a little clearer, but -z is OK.
2018-12-17Adjust PS1-PS4 resetTom Ryder1-5/+12
2018-12-17Use exec for clearer subshell semanticsTom Ryder1-1/+1
2018-12-17Use `command` consistently, silence ShellCheckTom Ryder11-13/+23
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.
2018-12-11Refactor some conditionalsTom Ryder15-48/+91
2018-12-11Factor out zsh ENV hack into one fileTom Ryder1-8/+0
It's a bit silly to have this in ~/.profile; it doesn't need to be there for such a niche case.
2018-12-11Refactor "path list" not to require a subshellTom Ryder1-8/+9
2018-12-06Remove unneeded semicolon from sh "for VAR ; do"Tom Ryder1-1/+1
It turns out the semicolon belongs to the "in" syntax, and is optional without it.
2018-11-23Remove a lot of alignment spacingTom Ryder3-10/+10
2018-10-24Use case statement for sudo -v switchingTom Ryder1-1/+4
This is slightly more idiomatic shell.
2018-08-07Add e() and v() wrappersTom Ryder2-0/+8
2018-06-29Break sh noglob guard into two lines for clarityTom Ryder2-2/+4
They're nicer to read this way.
2018-06-13Remove redundant NR==1 in awk(1) callTom Ryder1-1/+1
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