Skip to content

Instantly share code, notes, and snippets.

@mostlyfine
Last active October 25, 2022 06:43
Show Gist options
  • Save mostlyfine/a53dfa2dcf6ac05a857c3190c61a46ff to your computer and use it in GitHub Desktop.
Save mostlyfine/a53dfa2dcf6ac05a857c3190c61a46ff to your computer and use it in GitHub Desktop.
#!/bin/sh
# install brew and tool
! type brew &>/dev/null && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
! type brew &>/dev/null && eval $(/opt/homebrew/bin/brew shellenv)
test -e ~/Brewfile && curl -LSs https://gist.github.com/mostlyfine/a4618789c380bb9aba7ce5dea3b6a78c/raw > ~/Brewfile
brew bundle --file ~/Brewfile
# setup cli
git clone -q https://github.com/mostlyfine/dotfiles.git ~/dotfiles
for f in .zshrc .vimrc .vim .gitconfig .tmux.conf ;do
ln -sf ~/dotfiles/$f ~/$f
done
# setup vim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# setup development
source $(brew --prefix asdf)/asdf.sh
if type asdf &>/dev/null 2>&1; then
for plug in ruby nodejs golang perl python terraform; do
asdf plugin add $plug && asdf install $plug latest && asdf global $plug latest
done
asdf plugin add terraformer https://github.com/jmcvetta/asdf-terraformer.git
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment