install: `_bash-it-install-modify-profile()`
parent
d55adc610f
commit
4c5e87e545
|
|
@ -124,7 +124,11 @@ function _bash-it-install-modify-config() {
|
||||||
# backup/new by default
|
# backup/new by default
|
||||||
_bash-it-install-backup-new
|
_bash-it-install-backup-new
|
||||||
fi
|
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
|
if [[ ! -f ~/.bash_profile ]]; then
|
||||||
printf '%s\n' "${profile_string}" > ~/.bash_profile
|
printf '%s\n' "${profile_string}" > ~/.bash_profile
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue