tmux-continuum
tmux-continuum copied to clipboard
Systemd service assumes tmux path
The path assumed by the systemd service template can be wrong on certain distributions. In particular, NixOS does not put the executable anywhere you'd expect it. For my user profile, it's at /etc/profiles/per-user/mkaito/bin/tmux
. As you can see, there's no way for you to know in advance.
If at all possible, the template should run $(which tmux)
, instead of assuming it knows the path.
Or better: $(command -v tmux)
.
command -v
is a (POSIX) shell builtin, whereas which
is a binary that may or may not be available.