aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-08-10 16:20:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-08-10 16:20:44 +1200
commit1dbbdfd839a2362a842baa43fdf9a573d91fab64 (patch)
treebe1ca833e5a134e0855a87eb2d283f36a815c57d
parentAdd starting unclutter to .xsession (diff)
downloaddotfiles-1dbbdfd839a2362a842baa43fdf9a573d91fab64.tar.gz
dotfiles-1dbbdfd839a2362a842baa43fdf9a573d91fab64.zip
Set SYSTEMD_EDITOR as part of install-systemd
-rw-r--r--Makefile3
-rw-r--r--systemd/profile.d/systemd.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4cea49d8..8902f714 100644
--- a/Makefile
+++ b/Makefile
@@ -580,7 +580,8 @@ install-sxhkd: install-scrot install-x
cp -p -- sxhkd/sxhkdrc $(XDG_CONFIG_HOME)/sxhkd
cp -p -- sxhkd/xsession.d/* $(HOME)/.xsession.d
-install-systemd:
+install-systemd: install-sh
+ cp -p -- systemd/profile.d/*.sh $(HOME)/.profile.d
mkdir -p -- $(XDG_DATA_HOME)/systemd/user
cp -p -- systemd/user/*.service \
$(XDG_DATA_HOME)/systemd/user
diff --git a/systemd/profile.d/systemd.sh b/systemd/profile.d/systemd.sh
new file mode 100644
index 00000000..1f305f65
--- /dev/null
+++ b/systemd/profile.d/systemd.sh
@@ -0,0 +1,2 @@
+# Use $VISUAL for editing systemd unit files, not $EDITOR
+export SYSTEMD_EDITOR=$VISUAL