diff --git a/install.sh b/install.sh index 4c7c1162..00342bfc 100755 --- a/install.sh +++ b/install.sh @@ -124,7 +124,11 @@ function _bash-it-install-modify-config() { # backup/new by default _bash-it-install-backup-new fi - local choice profile_string=$'if [[ -s ~/.profile ]]; then\n\tsource ~/.profile\nfi\nif [[ $- == *"i"* && -s ~/.bashrc ]]; then\n\tsource ~/.bashrc\nfi' + _bash-it-install-modify-profile +} + +function _bash-it-install-modify-profile() { + local choice profile_string=$'if [[ $- == *i* && -s ~/.bashrc ]]; then\n\tsource ~/.bashrc\nfi' if [[ ! -f ~/.bash_profile ]]; then printf '%s\n' "${profile_string}" > ~/.bash_profile else