We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_bash-it-install-modify-profile()
1 parent a9f63df commit 619e1b0Copy full SHA for 619e1b0
install.sh
@@ -124,7 +124,11 @@ function _bash-it-install-modify-config() {
124
# backup/new by default
125
_bash-it-install-backup-new
126
fi
127
- 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
128
+}
129
+
130
+function _bash-it-install-modify-profile() {
131
+ local choice profile_string=$'if [[ $- == *i* && -s ~/.bashrc ]]; then\n\tsource ~/.bashrc\nfi'
132
if [[ ! -f ~/.bash_profile ]]; then
133
printf '%s\n' "${profile_string}" > ~/.bash_profile
134
else
0 commit comments