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"
|
2022-03-12 17:36:58 +00:00
|
|
|
|
|
|
|
# https://github.com/romkatv/gitstatus#using-from-bash
|
|
|
|
if [ ! -d "$HOME/.config/bash/gitstatus" ] ; then
|
|
|
|
git clone --depth=1 https://github.com/romkatv/gitstatus.git "$HOME/.config/bash/gitstatus"
|
|
|
|
fi
|