Created
November 19, 2019 14:26
-
-
Save sovetnik/4bce0bc6b0464f3cdcf4b4e24ceeb9ec to your computer and use it in GitHub Desktop.
Catalina setup WIP
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
# check versions | |
git --version | |
zsh --version | |
ruby -v | |
vim -v | |
# Command line tools | |
xcode-select --install | |
echo "Command line tools installed" | |
# homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install ddate zplug zsh-autosuggestions zsh-history-substring-search neovim htop tig | |
# copy .config and .ssh folders from backup | |
# # zsh config, if new install | |
# cd ~/.config | |
# git clone https://github.com/sovetnik/zsh.git | |
# cd zsh | |
# cd ~/.config/zsh | |
# ln zshrc ~/.zshrc | |
# neovim environment | |
gem install neovim --user-install | |
pip3 install pynvim --user | |
# Setting Docker and NFS | |
# https://medium.com/@sean.handley/how-to-set-up-docker-for-mac-with-native-nfs-145151458adc | |
# https://github.com/sovetnik/docker-with-mac-native-nfs | |
brew cask install docker | |
# echo "== Resetting folder permissions..." | |
# U=`id -u` | |
# G=`id -g` | |
# sudo chown -R "$U":"$G" . | |
echo "== Setting up nfs..." | |
LINE="/Users -alldirs -mapall=$U:$G localhost" | |
FILE=/etc/exports | |
sudo cp /dev/null $FILE | |
grep -qF -- "$LINE" "$FILE" || sudo echo "$LINE" | sudo tee -a $FILE > /dev/null | |
LINE="nfs.server.mount.require_resv_port = 0" | |
FILE=/etc/nfs.conf | |
grep -qF -- "$LINE" "$FILE" || sudo echo "$LINE" | sudo tee -a $FILE > /dev/null | |
echo "== Restarting nfsd..." | |
sudo nfsd restart | |
echo "== Restarting docker..." | |
open -a Docker | |
while ! docker ps > /dev/null 2>&1 ; do sleep 2; done | |
echo "" | |
echo "SUCCESS! Now go run your containers 🐳" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment