path: root/sh/profile.d
AgeCommit message (Collapse)AuthorFilesLines
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 Ryder1-0/+1
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-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-27Two-space sentences in shell commentsTom Ryder1-1/+1
2018-12-17Follow ShellCheck's recommendation of -z over !-nTom Ryder1-1/+1
I think !-n is a little clearer, but -z is OK.
2018-12-17Use `command` consistently, silence ShellCheckTom Ryder1-2/+2
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 Ryder3-7/+14
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 Ryder2-8/+8
2018-06-13Remove redundant NR==1 in awk(1) callTom Ryder1-1/+1
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).
2017-07-26Adjust linebreak behaviour around downloads checkTom Ryder1-1/+4
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-18More segmentation/tidyingTom Ryder1-5/+0
2017-06-18Break plenv stuff into its own targetTom Ryder1-5/+0
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-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 Ryder1-1/+1
2017-03-24Add exm(1df) to work around Vim's screen-clearingTom Ryder1-1/+10
2017-03-09Use env vars not shell funcs for vim checkTom Ryder2-4/+12
Set EDITOR and VISUAL appropriately based on what's on the system. We can't assume ed(1) unfortunately, but ex(1) should be there.
2017-02-26Add plenv scriptsTom Ryder1-0/+5
Probably worthwhile given I use it on several systems and it's not expensive to check whether it exists.
2017-02-18Use short-circuits in .profile.d scriptsTom Ryder2-5/+6
2017-01-27s/exit/return/ in ex-subshell funcTom Ryder1-4/+4
2017-01-25Avoid a fork in options detectionTom Ryder1-8/+9
2017-01-11Use POSIX-compatible versions of ls(1) optsTom Ryder1-7/+4
2017-01-09Much simpler LC_COLLATE approachTom Ryder1-15/+4
2017-01-09Force LC_COLLATE to a sane valueTom Ryder1-0/+15
It always really annoys me when e.g. the leading dot or leading slash in pathnames or filenames gets ignored for the purposes of sorting. I may refine this later on but it seems like a good start for an approach.
2016-12-28Put operating system into OS env varTom Ryder1-0/+3
2016-09-01Refactor welcome.shTom Ryder1-38/+29
2016-08-31Make comment on BROWSER more usefulTom Ryder1-1/+2
2016-08-27Move SSH_ASKPASS setup to ~/.xinitrcTom Ryder1-4/+0
2016-08-27Use only system-path mkdir/grep for options setupTom Ryder1-2/+2
A little quicker
2016-08-27Fix some comments in options.shTom Ryder1-2/+2