From 13be8c0c7bbde633d897e8e44ab6dd810c636750 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 23 Mar 2016 20:50:35 +0000 Subject: [PATCH] Add a setup script --- envsetup | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 envsetup diff --git a/envsetup b/envsetup new file mode 100644 index 0000000..65cc48f --- /dev/null +++ b/envsetup @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +BIN_DIR=$(pwd) + +# Backup the existing bashrc and bash aliases +mv ~/.bashrc ~/.bashrc.bak +mv ~/.bash_aliases ~/.bash_aliases.bak +# Link to the new ones +ln -s ${BIN_DIR}/.bashrc ~/.bashrc +ln -s ${BIN_DIR}/.bash_aliases ~/.bash_aliases +# Copy the bash host file into place +cp ${BIN_DIR}/.bash_host ~