1
0
Fork 0
bin/envsetup

18 lines
560 B
Bash
Executable File

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