ansible-devspace/start_tmux.sh

7 lines
242 B
Bash
Raw Normal View History

2024-07-30 09:58:43 +02:00
#!/bin/bash
## check interactive shell https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
if [[ $- == *i* ]] ; then
tmux new-session -s ansible-devspace -d
tmux attach -t ansible-devspace
fi