add tmux systemd service
This commit is contained in:
parent
2b1aa6a84b
commit
d09449411b
@ -7,7 +7,11 @@ if \
|
||||
[[ ! "$TERM" =~ tmux ]] && \
|
||||
command -v tmux &>/dev/null
|
||||
then
|
||||
if systemctl -q --user is-active tmux; then
|
||||
exec tmux -N -L "$USER" new
|
||||
else
|
||||
exec tmux
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.config/bash/sourcer" ]; then
|
||||
|
||||
@ -5,7 +5,7 @@ After=default.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/tmux -D
|
||||
ExecStart=/usr/bin/tmux -D -L %u
|
||||
ExecStop=/usr/bin/tmux kill-server
|
||||
Restart=on-failure
|
||||
|
||||
|
||||
@ -7,7 +7,11 @@ if \
|
||||
[[ ! "$TERM" =~ tmux ]] && \
|
||||
command -v tmux &>/dev/null
|
||||
then
|
||||
if systemctl -q --user is-active tmux; then
|
||||
exec tmux -N -L "$USER" new
|
||||
else
|
||||
exec tmux
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$ZDOTDIR/sourcer" ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user