Skip to content

Instantly share code, notes, and snippets.

@erdii
Last active May 10, 2019 07:42
Show Gist options
  • Save erdii/d3ebc9ba1744b282460e495a407a0f0e to your computer and use it in GitHub Desktop.
Save erdii/d3ebc9ba1744b282460e495a407a0f0e to your computer and use it in GitHub Desktop.
initial setup for my development mac - including goodies such as: local .test-domains, nginx, password-safe, docker, vpn-client, keybase, markdown-editor, vscode and more
#!/bin/bash
set -e
SCREENSHOT_PATH="~/Pictures/Screenshots"
printf "save screenshots in $SCREENSHOT_PATH\n"
mkdir $SCREENSHOT_PATH && cd $SCREENSHOT_PATH && defaults write com.apple.screencapture location $(pwd)
printf "install homebrew!\n"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
printf "install fonts\n"
brew cask install homebrew/cask-fonts/font-fira-mono-for-powerline homebrew/cask-fonts/font-fira-code
printf "install apps\n"
brew cask install keepassxc iterm2 firefox chromium visual-studio-code \
the-unarchiver postman postico sequel-pro postgres slack yed \
keepingyouawake tunnelblick typora cakebrew java docker \
teamviewer keybase virtualbox cyberduck \
libreoffice sourcetree caskroom/versions/java8 gpg-suite launchcontrol \
standard-notes riot spectacle spotify nextcloud mattermost
printf "install cli-ish apps\n"
brew install coreutils nginx dnsmasq jq zsh python python2 watch speedtest-cli gource elixir awscli redis memcached ansible hexyl prettyping neovim the_silver_searcher
printf "enable xcode command line tools\n"
xcode-select --install # Install Command Line Tools if you haven't already.
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer # Enable command line tools
printf "install vim python bindings\n"
pip2 install --user neovim
pip3 install --user neovim
printf "enable dnsmasq and dns-redirect .test to 127.0.0.1\n"
echo "address=/test/127.0.0.1" | tee -a /usr/local/etc/dnsmasq.conf
sudo brew services start dnsmasq
sudo mkdir -p /etc/resolver
sudo tee /etc/resolver/test >/dev/null <<EOF
nameserver 127.0.0.1
EOF
printf "enable nginx\n"
sudo brew services start nginx
printf "install oh-my-zsh - will ask for sudo password!\n"
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
printf "add postgres.app cli helpers to PATH\n"
sudo mkdir -p /etc/paths.d &&
echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
printf "enable ssh-askpass support\n"
brew tap theseal/ssh-askpass && brew install ssh-askpass
printf "re-enable font smoothing on non-retina displays (disabled since mojave https://www.howtogeek.com/358596/how-to-fix-blurry-fonts-on-macos-mojave-with-subpixel-antialiasing/)\n"
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
printf "configure git to always push tags\n"
git config --global push.followTags true
printf "increase key repeat rate when a key is held down\n"
defaults write -g InitialKeyRepeat -int 15 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 2 # normal minimum is 3 (30 ms)
printf "========================\n"
printf "visit https://stackoverflow.com/a/31328973 for instructions on how to enable word-jumping with alt+arrow in iterm2\n"
@erdii
Copy link
Author

erdii commented Dec 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment