Giter Site home page Giter Site logo

macbook-pro-setup's Introduction

#NodeJS #Docker #iTerm2 #Atom #WebStorm #ZSH

Setup your brand new macbook pro like a pro

The End ๐Ÿ˜Ž

OK... let's share a quick reminder!

Install Xcode, on macOS, you can't dev without Xcode

 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

Install tools for devs, a short must have list

#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

Configure your ZSH on steroids, add these lines to your ~/.zshrc

plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting zsh-autosuggestions)

ZSH_THEME="agnoster"
DEFAULT_USER="yourusername"

Configure shell to use zsh, type this line in your iTerm2 shell

chsh -s /bin/zsh

Restart iTerm2

Configure iTerm2

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

Tada ๐ŸŽ‰

Configure your editor, add these lines to your ~/.zshrc

export EDITOR="atom -w"
alias edit="atom -nw"

Configure git

git config --global user.name "Your Name Here"
git config --global user.email "[email protected]"

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 NodeJS

Install NVM, to manage multiple NodeJS versions

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

Restart iTerm2, or touch ~/.zshrc

Install NodeJS LTS, latest long term supported version

nvm install --lts

Configure Docker using HyperKit (xhyve)

brew cask install docker

docker run hello-world

or

Configure Docker using virtualbox

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

update (most of) your dev tools, in (almost) 1 line

brew update && brew upgrade

(Apple Silicon only) Local LLM (AI Chatbot)

brew install ollama

brew install raycast

ollama pull mistral

You can use any other odel on Ollama library

Install Raycast plugin Ollama AI and follow instructions

have fun

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

macbook-pro-setup's People

Contributors

clakech avatar bogala avatar gcruchon avatar linsolas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.