From db9d80b96be441b4e300ef47442be5a721b0ac9a Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 4 Dec 2011 14:39:42 -0500 Subject: [PATCH] Started building an install script --- install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..22f7ae7 --- /dev/null +++ b/install.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# TODO check if fortune-mod is installed and if not, install it + +# Clears out the old .bashrc +if [ -f ~/.bashrc ]; +then + rm ~/.bashrc +fi + +# Grabs the skeleton .bashrc +cp /etc/skel/.bashrc ~/.bashrc + +# Appends the custom .bashrc file +echo " +if [ -f `pwd`/bash.bashrc ] && ! shopt -oq posix; then + . `pwd`/bash.bashrc +fi" >> ~/.bashrc