Only execute oh-my-bash on an interactive shell in .bashrc

This commit is contained in:
Nathan Ollerenshaw
2018-05-30 10:34:39 -07:00
parent b4a5c923f7
commit 6addd2b1e3

View File

@@ -49,7 +49,10 @@ OSH_THEME="font"
# Add wisely, as too many plugins slow down shell startup.
plugins=(core git bashmarks progress)
source $OSH/oh-my-bash.sh
if tty -s
then
source $OSH/oh-my-bash.sh
fi
# User configuration