Skip to content

Instantly share code, notes, and snippets.

@shaunfink
Last active January 6, 2021 19:04
Show Gist options
  • Save shaunfink/d5b0e71b75444d939d0a912881af317e to your computer and use it in GitHub Desktop.
Save shaunfink/d5b0e71b75444d939d0a912881af317e to your computer and use it in GitHub Desktop.
Setup my Mac

Setup My Mac

PyEnv & Python 3

After installing homebrew

sudo chown -R $(whoami) /usr/local/lib/pkgconfig
chmod u+w /usr/local/lib/pkgconfig

sudo chown -R $(whoami) /usr/local/share
chmod u+w /usr/local/share

Installing Python

brew install pyenv
pyenv install 3.7.3
pyenv global 3.7.3

ZSH Shell

brew install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"

autoload -Uz compinit && compinit

Set ZSH as my default

echo $SHELL
dscl . -read /Users/$USER UserShell
ls -la /usr/local/bin/zs*
brew list
brew list zsh
brew info zsh
sudo dscl . -create /Users/$USER UserShell /usr/local/bin/zsh\n
which zsh
zsh --version
dscl . -read /Users/$USER UserShell

Set permissions

rm -f ~/.zcompdump; compinit
compaudit | xargs chmod g-w
chmod 755 /usr/local/share

Install some more useful stuff

brew install tmux
brew install zsh-autosuggestions
brew install zsh-syntax-highlighting
brew install zsh-history-substring-search
brew install gradle
brew install maven
brew install s3cmd
brew install ipcalc
brew install netcat
brew install ansible
brew install cowsay
brew install fortune
brew install cmatrix
brew install thefuck
brew install wget
brew install saltstack
brew install packer
brew install jq
brew install bat
brew install gig

brew install zsh-completions
brew install vagrant-completion
brew install tmuxinator-completion
brew install spring-completion
brew install ruby-completion
brew install pip-completion
brew install packer-completion
brew install maven-completion
brew install gradle-completion
brew install gem-completion
brew install docker-completion
brew install docker-machine-completion
brew install docker-compose-completion
brew install brew-cask-completion
brew install bash-completion

brew cask install adoptopenjdk

rbenv

brew install ruby-build 
brew install rbenv
brew install rbenv-gemset

rbenv install 2.7.0
rbenv versions
rbenv global 2.7.0

Fonts

brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font

## Node

brew install node

npm install -g json

AWSCLI

brew install awscli

Spring Boot

brew tap pivotal/tap
brew install springboot

GoLang

brew install go 
go get golang.org/x/tools/cmd/godoc
go get golang.org/x/lint/golint
go get github.com/golang/lint/golint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment