ansible-devspace/start_tmux.sh
Michael Grote 869f4c26fc
All checks were successful
lint, build and push / lint (push) Successful in 5s
lint, build and push / build (push) Successful in 2m43s
start-tmux: check if session is interactive
2024-09-13 18:24:48 +02:00

6 lines
242 B
Bash
Executable file

#!/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