From e33f5665af536769b154ebcbbfae3b5bd2f7fff4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 27 Apr 2020 21:03:47 +1200 Subject: Set systemctl editor to vi rather than ed --- sh/profile.d/systemd.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sh/profile.d/systemd.sh (limited to 'sh') 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 -- cgit v1.2.3