commit ddc8a586ac3fa3038f6ff0f0406389012519168a
parent 3bf70d636e362bf022f3e6da7520f9615e416c1d
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 23 Sep 2019 16:26:21 +0200
Conditional EDITOR set for OpenBSD
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.config/sh/profile b/.config/sh/profile
@@ -1,7 +1,11 @@
#!/bin/sh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
-export EDITOR=vis
+if type vise >/dev/null 2>&1; then
+ export EDITOR=vise
+else
+ export EDITOR=vis
+fi
export FCEDIT="$EDITOR"
export TERMINAL=st
export FILE=nnn