path: root/sh/profile.d/visual.sh
AgeCommit message (Collapse)AuthorFilesLines
2020-05-12Move systemd editor setting to after visualTom Ryder1-0/+6
Loaded out of order otherwise, so doesn't get set.
2020-05-12Try a compatibility switch on vi/vimTom Ryder1-2/+7
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-01-15Quote EDITOR/VISUAL assignments for clarityTom Ryder1-1/+1
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-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-03-09Use env vars not shell funcs for vim checkTom Ryder1-2/+6
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.
2016-08-18Arrange EDITOR/VISUAL in a more typical wayTom Ryder1-0/+3