tmux concept changed

This commit is contained in:
Dirk Alders 2022-10-10 13:48:40 +02:00
parent 9d92f712d3
commit 1c0c86698f

View File

@ -1,10 +1,5 @@
#!/bin/sh
#
if [ -z "$TMUX" ]; then
if tmux attach -t $(tmux ls | grep -v attached | head -1 | cut -f1 -d:) || tmux; then
exit
else
echo "Error while exicuting tmux. Check if tmux is installed"
fi
fi
~/bin/tmux_ssh