Prevent dangling tmux
sessions
This commit is contained in:
parent
5cfb4ee184
commit
e017d8fb64
1 changed files with 1 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue