bash/install.sh

13 lines
343 B
Bash
Raw Normal View History

2022-03-12 17:13:43 +00:00
#!/bin/bash
if [ -e "$HOME/.bash_profile" ] ; then
mv "$HOME/.bash_profile" "$HOME/bash_profile-original-$(date +%s)"
fi
if [ -e "$HOME/.bashrc" ] ; then
mv "$HOME/.bashrc" "$HOME/bashrc-original-$(date +%s)"
fi
ln -s "$HOME/.config/bash/bash_profile" "$HOME/.bash_profile"
ln -s "$HOME/.config/bash/bashrc" "$HOME/.bashrc"