| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Let's simplify all this a bit.
|
| |
|
|
|
|
| |
Duhhhhh.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|