From 4c5e87e545b1be553ba773a377b31d75388821ed Mon Sep 17 00:00:00 2001 From: John D Pell Date: Fri, 28 Jan 2022 16:37:25 -0800 Subject: [PATCH] install: `_bash-it-install-modify-profile()` --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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