diff --git a/bash_it.sh b/bash_it.sh index ab911019..8e2c23d8 100755 --- a/bash_it.sh +++ b/bash_it.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash # Initialize Bash It +# If not running interactively, don't do anything +case $- in + *i*) ;; + *) return;; +esac + # Only set $BASH_IT if it's not already set if [ -z "$BASH_IT" ]; then