|
@ -18,6 +18,11 @@ if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then |
|
|
exit 0 |
|
|
exit 0 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [[ -z $TMUX ]]; then |
|
|
|
|
|
tmux attach-session -t $selected_name |
|
|
|
|
|
exit 0 |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
if ! tmux has-session -t=$selected_name 2> /dev/null; then |
|
|
if ! tmux has-session -t=$selected_name 2> /dev/null; then |
|
|
tmux new-session -ds $selected_name -c $selected |
|
|
tmux new-session -ds $selected_name -c $selected |
|
|
fi |
|
|
fi |
|
|