From ddab0c93f75c919874f24ae198d7e4f3ba1da18b Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sat, 6 Aug 2022 12:13:07 +0200 Subject: [PATCH] Run tmux as user unit to get proper systemd environment initialization --- .config/systemd/user/tmux.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/systemd/user/tmux.service diff --git a/.config/systemd/user/tmux.service b/.config/systemd/user/tmux.service new file mode 100644 index 0000000..fc4806c --- /dev/null +++ b/.config/systemd/user/tmux.service @@ -0,0 +1,10 @@ +[Unit] +Description=Run tmux server + +[Service] +Restart=always +StartLimitIntervalSec=0 +ExecStart=/usr/bin/tmux -D -u + +[Install] +WantedBy=default.target