my_bashrc/install_my_bashrc.sh
2022-05-05 16:50:05 +03:00

10 lines
221 B
Bash
Executable file

#!/bin/bash
my_dir=$(dirname "${0}")
if [ -e "${HOME}/.bashrc" ]; then
mv "${HOME}/.bashrc" "${HOME}/.bashrc.bak"
fi
cd "${my_dir}" ||exit 1
cp bash_rc "${HOME}/.bashrc" -rfp
cp bashrc.d/* "${HOME}/.bashrc.d/" -rfp