https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'
shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'
https://unix.stackexchange.com/questions/26676/how-to-check-if-a-shell-is-login-interactive-batch
[[ $- == *i* ]] && echo 'Interactive' || echo 'Not interactive'
shopt -q login_shell && echo 'Login shell' || echo 'Not login shell'