Skip to content

Commit d718669

Browse files
committed
install: _bash-it-install-modify-profile()
1 parent 99e4afa commit d718669

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ function _bash-it-install-modify-config() {
124124
# backup/new by default
125125
_bash-it-install-backup-new
126126
fi
127+
_bash-it-install-modify-profile
128+
}
129+
130+
function _bash-it-install-modify-profile() {
127131
local choice profile_string=$'if [[ -s ~/.profile ]]; then\n\tsource ~/.profile\nfi\nif [[ $- == *"i"* && -s ~/.bashrc ]]; then\n\tsource ~/.bashrc\nfi'
128132
if [[ ! -f ~/.bash_profile ]]; then
129133
printf '%s\n' "${profile_string}" > ~/.bash_profile

0 commit comments

Comments
 (0)