My MacBook Pro setup https://clakech.github.io/macbook-pro-setup/
#NodeJS #Docker #iTerm2 #Atom #WebStorm #ZSH
Setup your brand new macbook pro like a pro
Mostly Follow http://sourabhbajaj.com/mac-setup/index.html
OK... let's share a quick reminder!
xcode-select --install
Install HomeBrew, a tool to install CLI tools without copy/paste
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Homebrew Cask, a tool to install UI tools without monkey clicking
brew tap caskroom/cask
#what else?
brew install git
#customizable terminal
brew cask install iterm2
#customizable editor
brew cask install atom
#IDE for web dev
brew cask install webstorm
#to keep in touch with your team
brew cask install slack
#best web dev browser ^^
brew cask install google-chrome
#replace spotlight with alfred
brew cask install alfred
#manage windows with keyboard shortcuts
brew cask install spectacle
#type emoticons easily everywhere
brew cask install rocket
Install ZSH & co, the best shell suite for devs #mustHave
brew install zsh zsh-completions
#install oh-my-zsh, a zsh configuration helper
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#install auto suggestions plugin
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting zsh-autosuggestions)
ZSH_THEME="agnoster"
DEFAULT_USER="yourusername"
chsh -s /bin/zsh
Install font Meslo LG M Regular for Powerline
git clone https://github.com/powerline/fonts.git ~/tempFonts
~/tempFonts/install.sh
Go to ~/Library/Fonts and install font Meslo LG M Regular for Powerline
Go to iTerm2 / Preferences / Profiles / Text / Change Font / Meslo LG M Regular for Powerline.
Make sure the option Use a different font for non-ASCII character
is not checked.
Go to iTerm2 / Preferences / Profiles / Colors / Colors presets / Solarized Dark
Go to iTerm2 / Preferences / Profiles / Windows / Transparency + Blur
Delete downloaded font files
rm -Rf ~/tempFonts
export EDITOR="atom -w"
alias edit="atom -nw"
git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"
git config --global credential.helper osxkeychain
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
#see all default oh-my-zsh git aliases https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#git
Install NVM, to manage multiple NodeJS versions
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
nvm install --lts
brew cask install docker
docker run hello-world
or
brew cask install virtualbox
brew install docker docker-machine docker-compose
docker-machine create -d virtualbox default
eval "$(docker-machine env default)"
docker run hello-world
Manage your dotFiles using git, because you may want to review history one day
#goto your home dir, using zsh no need to cd ~
cd
#create a git repo ignoring all files to avoid sharing sensistive stuff
git init
echo "*" > .gitignore
#git force add file you WANT to manage
ga -f .zshrc
...
#git commit all added files, gca = git commit -v -a thanks to oh-my-zsh
gca
#optional but recommanded, if you setup a git remote to backup your files using github for instance
git push origin master
brew update && brew upgrade
brew install cowsay ponysay fortune lolcat
#add a combinaison of nawak at the end of .zshrc or .zlogin
fortune | ponysay
#or
fortune | cowsay | lolcat
Please contribute to improve this and share it to the world if you like it 😉
/me on twitter @cyril_lakech