diff --git a/roles/home-cli/files/bash_profile b/roles/home-cli/files/bash_profile index 49ee63d..5821b13 100644 --- a/roles/home-cli/files/bash_profile +++ b/roles/home-cli/files/bash_profile @@ -3,3 +3,17 @@ if [ -r "$HOME/.profile" ] then . "$HOME/.profile" fi + +case "$-" in +*i*) + # Shell is interactive. + if [ -r "$HOME/.bashrc" ] + then + . "$HOME/.bashrc" + fi + ;; +*) + # Shell is not interactive. + return 1 + ;; +esac