Created
November 18, 2018 04:39
-
-
Save bacongravy/bbdb6f85043783d426a6ae173ef3ae18 to your computer and use it in GitHub Desktop.
Vagrantfile for node development on mac
This file contains 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
Vagrant.configure("2") do |config| | |
config.vm.box = "macinbox" | |
config.vm.provision "shell", | |
inline: <<~EOF | |
scutil --set ComputerName macinbox-dev | |
scutil --set LocalHostName macinbox-dev | |
defaults write /Library/Preferences/com.apple.screensaver.plist loginWindowIdleTime -integer 0 | |
pmset -b sleep 0 | |
EOF | |
config.vm.provision "shell", privileged: false, | |
inline: <<~EOF | |
defaults write com.apple.screensaver askForPassword -bool false | |
defaults write com.apple.screensaver idleTime -integer 0 | |
defaults write -g KeyRepeat -int 0 | |
defaults write -g InitialKeyRepeat -int 10 | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 | |
EOF | |
config.vm.provision "shell", privileged: false, | |
inline: <<~EOF | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew tap caskroom/cask | |
brew cask install atom | |
brew cask install sourcetree | |
brew install node | |
brew install yarn | |
EOF | |
config.vm.provision "shell", privileged: false, | |
inline: <<~EOF | |
git clone https://github.com/bacongravy/dotfiles.git ~/.dotfiles && ~/.dotfiles/bootstrap.sh | |
EOF | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment