## check if shell is interactive case "$-" in *i*) _bash_interactive="true" ;; *) _bash_interactive="false" ;; esac if [ "$_bash_interactive" = "true" ]; then clear echo -e "\033[1;33m*\033[m \033[1mgoodbye $USER.\033[m" fi