aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
Commit message (Collapse)AuthorAgeFilesLines
* Switch to using GNU Emacs on development machinesTom Ryder2019-01-011-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
* Two-space sentences in shell commentsTom Ryder2018-12-271-1/+1
|
* Follow ShellCheck's recommendation of -z over !-nTom Ryder2018-12-171-1/+1
| | | | I think !-n is a little clearer, but -z is OK.
* Use `command` consistently, silence ShellCheckTom Ryder2018-12-171-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.
* Refactor some conditionalsTom Ryder2018-12-113-7/+14
|
* Remove unneeded semicolon from sh "for VAR ; do"Tom Ryder2018-12-061-1/+1
| | | | | It turns out the semicolon belongs to the "in" syntax, and is optional without it.
* Remove a lot of alignment spacingTom Ryder2018-11-232-8/+8
|
* Remove redundant NR==1 in awk(1) callTom Ryder2018-06-131-1/+1
| | | | Duhhhhh.
* Quote EDITOR/VISUAL assignments for clarityTom Ryder2018-01-152-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).
* Adjust linebreak behaviour around downloads checkTom Ryder2017-07-261-1/+4
|
* Put local gamesdir at end of PATHTom Ryder2017-07-011-1/+1
| | | | | So that if anything actually important has the same name, that's used instead
* More segmentation/tidyingTom Ryder2017-06-181-5/+0
|
* Break plenv stuff into its own targetTom Ryder2017-06-181-5/+0
|
* Conditions for downloads.shTom Ryder2017-05-311-0/+15
|
* Some extra newlinesTom Ryder2017-05-311-1/+1
|
* Add "downloads.sh" profile eventTom Ryder2017-05-311-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.
* Just use whichever vi(1) we need as VISUALTom Ryder2017-05-141-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.
* Move exm(1df) test into EDITOR selectionTom Ryder2017-05-141-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.
* Use more logical ~/.cache subpathTom Ryder2017-04-121-1/+1
|
* Add exm(1df) to work around Vim's screen-clearingTom Ryder2017-03-241-1/+10
|
* Use env vars not shell funcs for vim checkTom Ryder2017-03-092-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.
* Add plenv scriptsTom Ryder2017-02-261-0/+5
| | | | | Probably worthwhile given I use it on several systems and it's not expensive to check whether it exists.
* Use short-circuits in .profile.d scriptsTom Ryder2017-02-182-5/+6
|
* s/exit/return/ in ex-subshell funcTom Ryder2017-01-271-4/+4
|
* Avoid a fork in options detectionTom Ryder2017-01-251-8/+9
|
* Use POSIX-compatible versions of ls(1) optsTom Ryder2017-01-111-7/+4
|
* Much simpler LC_COLLATE approachTom Ryder2017-01-091-15/+4
|
* Force LC_COLLATE to a sane valueTom Ryder2017-01-091-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.
* Put operating system into OS env varTom Ryder2016-12-281-0/+3
|
* Refactor welcome.shTom Ryder2016-09-011-38/+29
|
* Make comment on BROWSER more usefulTom Ryder2016-08-311-1/+2
|
* Move SSH_ASKPASS setup to ~/.xinitrcTom Ryder2016-08-271-4/+0
|
* Use only system-path mkdir/grep for options setupTom Ryder2016-08-271-2/+2
| | | | A little quicker
* Fix some comments in options.shTom Ryder2016-08-271-2/+2
|
* Combine welcome messages into one scriptTom Ryder2016-08-254-69/+54
|
* Remove unneeded { } around options() funcTom Ryder2016-08-251-2/+2
| | | | I'm learning a lot from izabera today
* Switch ls()/readline to horizontal list/completeTom Ryder2016-08-251-0/+1
| | | | <https://github.com/izabera/libash/blob/9e709a56a148b4311792cc66cd21b61a73434573/extras/sample_inputrc#L33>
* Force --hide-control-chars on ls(1) if availableTom Ryder2016-08-241-5/+6
| | | | | I prefer it to literal or C-style escaping representations, and ls(1) isn't for scripting output anyway.
* Initialise last varTom Ryder2016-08-231-0/+1
|
* Abbreviation in fortune.shTom Ryder2016-08-231-2/+1
|
* Change verse login check to use numeric testTom Ryder2016-08-231-2/+2
| | | | shellcheck warned me that \> isn't POSIX
* Correct stderr redirection for keychain(1) checkTom Ryder2016-08-231-1/+1
|
* Stop versioning go.shTom Ryder2016-08-211-6/+0
| | | | | Pretty simple script, and only in active use on one of my systems at the moment anyway; just cluttering environment otherwise
* Style tweaks to profile.d subscriptsTom Ryder2016-08-214-13/+4
|
* Consolidate ed,bc,grep,ls.sh into one functionTom Ryder2016-08-215-98/+55
|
* Distill/fix keychain handling a bitTom Ryder2016-08-211-10/+5
|
* Restructure ed() to test,cache features on loginTom Ryder2016-08-211-0/+22
|
* Cache --quiet option for bc(1) in flag fileTom Ryder2016-08-211-0/+22
| | | | As done for grep(1) and ls(1); ed(1) is next
* Add la(), ll()Tom Ryder2016-08-211-1/+2
|
* Clean up/extend grep()/ls() extensionTom Ryder2016-08-212-4/+10
|