yitz_ 1403053635 learn You can test if your current shell is an interactive shell using [[ $- == *i* ]]