cleanup install script and add asdf

This commit is contained in:
James Walker 2018-10-21 23:08:47 -04:00
parent 3a15fb6cb3
commit b14ed01dfa
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -1,21 +1,39 @@
#!/bin/bash #!/bin/bash
echo "Installing xcode commandline tools..." if [ ! -x "$(command -v git)" ]; then
sudo xcode-select --install echo "Installing xcode commandline tools..."
# Mojave fix sudo xcode-select --install
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target / # Mojave fix
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
echo "Installing homebrew..." echo "Installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "Homebrew already installed."
fi
echo "Installing oh-my-zsh..." if [ ! -d ~/.oh-my-zsh ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh echo "Installing oh-my-zsh..."
chsh -s /bin/sh git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
chsh -s /bin/zsh
else
echo "Oh-My-Zsh already installed."
fi
echo "Installing homesick..." if [ ! -d ~/.homesick ]; then
sudo gem install homesick echo "Installing homesick..."
homesick clone git@github.com:walkah/dotfiles.git sudo gem install homesick
homesick symlink -f homesick clone git@github.com:walkah/dotfiles.git
homesick symlink -f
else
echo "Homesick already installed."
fi
if [ ! -d ~/.asdf ]; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.6.0
else
echo "asdf already installed."
fi
echo "Initial brew bundle..." echo "Initial brew bundle..."
brew bundle --global brew bundle --global