26 lines
680 B
Bash
Executable File
26 lines
680 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
which brew > /dev/null
|
|
if (( $? != 0 )); then
|
|
echo "First installing Homebrew"
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
|
|
echo "Installing dependencies from Homebrew"
|
|
brew install -q $(< ./dependencies/homebrew.txt)
|
|
|
|
echo "Installing rbenv plugins"
|
|
pushd ruby/.rbenv/plugins
|
|
git -C rbenv-default-gems pull || git clone git@github.com:rbenv/rbenv-default-gems.git rbenv-default-gems
|
|
popd
|
|
|
|
echo "Installing Zsh plugins"
|
|
pushd zsh/dot-scripts
|
|
git -C geometry pull || git clone git@github.com:geometry-zsh/geometry.git geometry
|
|
popd
|
|
|
|
|
|
echo "Linking files"
|
|
stow --dotfiles -t ~ zsh
|
|
stow --dotfiles -t ~ ruby
|