diff options
Diffstat (limited to 'sh/profile.d')
-rw-r--r-- | sh/profile.d/systemd.sh | 4 |
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 |