home/zsh: run tmux in systemd user instead of session scope
This commit is contained in:
parent
ccd346efdb
commit
7e41ce1049
@ -101,7 +101,7 @@
|
||||
|
||||
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
|
||||
TMUX_EXE="${pkgs.tmux}/bin/tmux"
|
||||
$TMUX_EXE attach-session -t $USER || $TMUX_EXE new-session -s $USER
|
||||
systemd-run --scope --user $TMUX_EXE attach-session -t $USER || systemd-run --scope --user $TMUX_EXE new-session -s $USER
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user