View tmux-hybrid-attach.sh
#!/bin/zsh
grepTest=$(tmux list-sessions | grep $1)
if [ ! $grepTest ]; then
tmux new -s $1
else
tmux attach -t $1
fi