Prevent dangling tmux sessions

This commit is contained in:
Manuel Thalmann 2024-07-12 00:40:48 +02:00
parent 56704c3df1
commit 5a15c1ea05

View file

@ -4,9 +4,8 @@ function waitNetwork -a witness
set -l codeFile (mktemp)
if [ -z "$witness" ]
tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection…$(tput sgr0)"; $SHELL'
if not systemctl --quiet is-active network-online.target
tmux new-session -d 'cat /etc/motd; echo "$(tput bold)Please establish an internet connection…$(tput sgr0)"; $SHELL'
fish (status filename) true &
set -l pid "$last_pid"