bash/install.sh

13 lines
343 B
Bash
Executable File

#!/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"