This commit is contained in:
kayos@tcp.direct 2023-03-17 21:23:49 -07:00
parent 5f189ce1ee
commit 700406ae94
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -156,8 +156,7 @@ function _omb_install_user_bashrc {
printf '%s\n' "${BLUE}Copying the Oh-My-Bash template file to ~/.bashrc${NORMAL}"
export OSH="${OSH//\'/\'\\\'\'}"
"$OSH/templates/bashrc.osh-template" >|~/.bashrc.omb-temp &&
_omb_install_run mv -f ~/.bashrc.omb-temp ~/.bashrc
cat "$OSH/templates/bashrc.osh-template" > ~/.bashrc.omb-temp && mv -f ~/.bashrc.omb-temp ~/.bashrc
# If "source ~/.bashrc" is not found in ~/.bash_profile or ~/.profile, we try
# to create a new ~/.bash_profile with the default content or show messages