2016-03-23 20:50:35 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
BIN_DIR=$(pwd)
|
|
|
|
|
|
|
|
# Backup the existing bashrc and bash aliases
|
|
|
|
mv ~/.bashrc ~/.bashrc.bak
|
|
|
|
mv ~/.bash_aliases ~/.bash_aliases.bak
|
2016-09-12 20:06:45 +00:00
|
|
|
mv ~/.hh_favourites ~/.hh_favourites.bak
|
2016-03-23 20:50:35 +00:00
|
|
|
# Link to the new ones
|
|
|
|
ln -s ${BIN_DIR}/.bashrc ~/.bashrc
|
|
|
|
ln -s ${BIN_DIR}/.bash_aliases ~/.bash_aliases
|
2016-09-12 20:06:45 +00:00
|
|
|
ln -s ${BIN_DIR}/.hh_favourites ~/.hh_favourites
|
2016-03-23 20:50:35 +00:00
|
|
|
# Copy the bash host file into place
|
|
|
|
cp ${BIN_DIR}/.bash_host ~
|
2016-09-12 20:05:02 +00:00
|
|
|
|
|
|
|
# Set up git
|
|
|
|
## Add gitignore.io .gitignore file generator
|
|
|
|
git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'
|