aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-04-27 21:31:29 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-04-27 21:31:29 +1200
commit7db9340efc3fb228347aeeeae603cf45ed5290ed (patch)
tree913fdaee660cef9e5598e3c380d97d834c48af9d /sh/profile.d
parentMerge branch 'hotfix/v8.20.5' (diff)
parentBump VERSION (diff)
downloaddotfiles-7db9340efc3fb228347aeeeae603cf45ed5290ed.tar.gz
dotfiles-7db9340efc3fb228347aeeeae603cf45ed5290ed.zip
Merge branch 'release/v8.21.0'v8.21.0
* release/v8.21.0: Set systemctl editor to vi rather than ed Fix a few spelling and punctuation errors
Diffstat (limited to 'sh/profile.d')
-rw-r--r--sh/profile.d/systemd.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/profile.d/systemd.sh b/sh/profile.d/systemd.sh
new file mode 100644
index 00000000..3c8bf04c
--- /dev/null
+++ b/sh/profile.d/systemd.sh
@@ -0,0 +1,4 @@
+# If systemctl is installed, use $VISUAL as its editor, not $EDITOR
+command -v systemctl >/dev/null 2>&1 || exit
+SYSTEMD_EDITOR=$VISUAL
+export SYSTEMD_EDITOR