Created
May 8, 2019 01:14
-
-
Save tnishinaga/8c41b3bab3416f85a92a5512ddf4b48c to your computer and use it in GitHub Desktop.
My mac setup script(2019/05/08 ver)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
source ~/.bashrc | |
# fix permission to install zsh | |
sudo chown -R $(whoami) /usr/local/lib/pkgconfig | |
# install packages | |
brew install \ | |
docker \ | |
zsh \ | |
vim \ | |
emacs \ | |
git \ | |
ansible | |
brew cask install \ | |
visual-studio-code \ | |
google-chrome \ | |
alfred \ | |
iterm2 \ | |
google-japanese-ime \ | |
docker \ | |
virtualbox \ | |
shiftit \ | |
vagrant | |
# zsh setup | |
zsh -c 'git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"' | |
cat <<'EOF' | zsh -x | |
# prezto config | |
setopt EXTENDED_GLOB | |
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do | |
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" | |
done | |
EOF | |
chsh -s /bin/zsh | |
# spaceemacs | |
rm -rf ~/.emacs.d | |
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment