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 395f005 commit c742a5dCopy full SHA for c742a5d
install.sh
@@ -124,6 +124,10 @@ function _bash-it-install-modify-config() {
124
# backup/new by default
125
_bash-it-install-backup-new
126
fi
127
+ _bash-it-install-modify-profile
128
+}
129
+
130
+function _bash-it-install-modify-profile() {
131
local choice profile_string=$'if [[ -s ~/.profile ]]; then\n\tsource ~/.profile\nfi\nif [[ $- == *"i"* && -s ~/.bashrc ]]; then\n\tsource ~/.bashrc\nfi'
132
if [[ ! -f ~/.bash_profile ]]; then
133
printf '%s\n' "${profile_string}" > ~/.bash_profile
0 commit comments