bash/available/tmux_local.sh

11 lines
229 B
Bash
Raw Normal View History

2020-01-26 17:20:02 +01:00
#!/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