An attempt at consolidating some of this stuff to reduce future google searches.
- Homebrew: https://brew.sh/
- iTerm: https://www.iterm2.com/
- VSCode: https://code.visualstudio.com/
- Sublime: https://www.sublimetext.com/
- Oh-my-zsh: https://ohmyz.sh/
brew cask install iterm2
(Note: See below for installing homebrew)
Iterm2 color schemes:
https://github.com/mbadolato/iTerm2-Color-Schemes
https://code.visualstudio.com/
brew cask install visual-studio-code
Shortcut For VSCode
Open the VSCode app and type in command + shift P
, then type in shell command
and click the search result. This will add a shortcut so that you can use code
to open files and directories from your terminal in VSCode. For example, to open the directory you're currently in:
code .
brew cask install sublime-text
Shortcut for Sublime
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Disable homebrew analytics if you want:
brew analytics off
brew install git
For getting set up with github, You may need to do the following:
-
Generate a new key:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
-
Copy the new rsa key:
pbcopy < ~/.ssh/id_rsa.pub
-
Add this key to your GitHub account
Additionally, you can configure your github user:
git config --global user.name ‘username’
git config --global user.email ‘your_email@example.com’
https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
brew install zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
If you don’t get prompted to do this when installing oh-my-zsh, try this:
chsh -s /usr/local/bin/zsh
Additional reading for zsh config, covers themes, colors, fonts, etc:
https://www.freecodecamp.org/news/how-to-configure-your-macos-terminal-with-zsh-like-a-pro-c0ab3f3c1156/
ruby is probably already installed on your Macbook. You can check to confirm with:
ruby -v
You can also install ruby with homebrew:
brew install ruby
You'll probably want to use a version mgmt tool like rbenv, rvm, or asdf.
brew install rbenv
rbenv init
Follow the printed instructions to set up rbenv shell integration.
Upgrade with:
brew upgrade rbenv ruby-build
Basic Useage:
# list all available versions:
rbenv install -l
# install a Ruby version:
rbenv install 2.0.0-p247
# Set the ruby version locally
rbenv local 1.9.3-p327
# Set the ruby version globally
rbenv global 1.8.7-p352
brew install coreutils curl git
brew install asdf
Add this to ~/.zshrc
. $(brew --prefix asdf)/asdf.sh
Upgrade with:
brew upgrade asdf
Basic Usage:
# Add something
asdf plugin add ruby
# List plugins
asdf plugin list
# Update plugins
asdf plugin update --all
# Remove something
asdf plugin remove
# Install a specific version
asdf install ruby 2.6.5
# Set global version
asdf global ruby 2.6.5
# Set local version
asdf local ruby 2.6.5
You will probably need to install xcode at some point. Try this:
xcode-select --install
To install:
brew install postgres
To start:
brew services start postgresql
sudo gem install rails
gem install bundler
brew install node
brew install deno
brew install elixir
brew install python