diff --git a/available/tmux_local.sh b/available/tmux_local.sh index 7c64ada..63d5619 100755 --- a/available/tmux_local.sh +++ b/available/tmux_local.sh @@ -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 +