up to date install script

This commit is contained in:
James Walker 2018-10-01 14:26:22 -04:00
parent 1000c410a7
commit 6109666aae
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -1,26 +1,19 @@
#!/bin/bash #!/bin/bash
# Install oh-my-zsh echo "Installing xcode commandline tools..."
if [ ! -d ~/.oh-my-zsh ]; then xcode-select --install
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh # Mojave fix
fi sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
# Install emacs.d echo "Installing homebrew..."
if [ ! -d ~/.emacs.d ]; then /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
git clone https://github.com/walkah/emacs.d.git ~/.emacs.d
fi
DOTFILES=`cd $(dirname $0)/home; pwd` echo "Installing oh-my-zsh..."
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
for FILE in `ls -a $DOTFILES`; do echo "Installing homesick..."
NAME=`basename $FILE` sudo gem install homesick
TARGET=$HOME/$NAME homesick clone git@github.com:walkah/dotfiles.git
if [ $NAME != '.' ] && [ $NAME != '..' ]; then echo "Initial brew bundle..."
if [ -L $TARGET ]; then brew bundle --global
echo "$TARGET exists"
else
ln -vsf $FILE $TARGET
fi
fi
done