18 lines
545 B
Bash
Executable File
18 lines
545 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"
|
|
|
|
# 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
|