This commit is contained in:
Tony Grosinger 2013-03-21 21:30:06 -07:00
parent b6b00d0277
commit cdcb6f9bae
2 changed files with 9 additions and 3 deletions

View File

@ -4,11 +4,10 @@
git submodule init
git submodule update
echo "This will create symlinks and destroy any conflicting configs already in place.";
read -p "Continue? [y/N] " choice
DIR="$( cd "$( dirname "$0" )" && pwd )"
OS="$(lsb_release -si)"
# Helper function to remove old file and link the new one
DIR="$( cd "$( dirname "$0" )" && pwd )"
function linkFile() {
if [ -f $1 ]; then
rm $1;
@ -26,6 +25,9 @@ function createDirectory() {
mkdir $1
}
echo "This will create symlinks and destroy any conflicting configs already in place.";
read -p "Continue? [y/N] " choice
# Perform the logic
case "$choice" in
Y|y|yes )
@ -52,6 +54,10 @@ case "$choice" in
echo "Linking autoenv..."
linkFile .autoenv
echo "Installing jq (you might have to enter your password)..."
chmod +x $DIR/jq
sudo ln -s $DIR/jq /usr/bin/jq
echo "Done! Restart your shell to see changes"
;;

BIN
jq Executable file

Binary file not shown.