- What Macbook do I have?
- Homebrew / Terminal / Shell
- OS Productivity
- Other Apps I Use Daily
- OS Settings
- Menu Bar Customization
- Web Browser
- Node.js
- VS Code
- Break Timer
This repository contains info on all the Apps / Tools / Settings I use on my Mac.
These are the specs at a glance:
- Apple M1 Max
- 32GB RAM
- 1TB SSD
You can read more about it here
Homebrew allows us to install tools and apps from the command line.
To install it, open up the built in Terminal
app and run this command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This will also install the xcode build tools which is needed by many other developer tools.
After Homebrew is done installing, we will use it to install everything else we need.
The first app I install is to replace the built in Terminal
.
I prefer iTerm2 because:
- Nice window chrome
- Lots of customization options
- Clickable links
- Native OS notifications
Quick aside - "window chrome" is another term for the basic structural elements used in a graphical user interface, such as window frames and scroll bars, as opposed to the content. After having a few people review this, I realize not everyone knows / uses that term 😅
There are a lot of options for a terminal replacement, but I've been using iTerm2 for years and it works great for my needs.
Checkout their documentation for more info on what iTerm2 can do: https://iterm2.com/documentation.html
We install this using a Homebrew "cask". Casks are full applications, similar to what you would install from the App store.
brew install iterm2
Once installed, launch it and customize the settings / preferences to your liking. These are my preferred settings:
- Appearance
- Theme
- Shades Of Purple
- Theme
- Profiles
- Default
- General -> Working Directory -> Reuse previous session's directory
- Colors -> Basic Colors -> Foreground -> Lime Green
- Text -> Font -> JetBrainsMono
- You can download this font here.
- I use this font in VS Code as well
- Text -> Font Size -> 14
- Keys -> Key Mappings -> Presets -> Natural Text Editing
- This allows me to use the keyboard shortcuts I know and love inside of iTerm2
- Default
Mac now comes with zsh
as the default shell.
To see what shell is currently your default, run:
echo $SHELL
To install the latest version of oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install Powerlevel10k using the following command:
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Then you need to enable it, change the value of ZSH_THEME to following in ~/.zshrc file :
ZSH_THEME="powerlevel10k/powerlevel10k"
Go to Ruby directory and install Colorls:
cd /opt/homebrew/Cellar/ruby/<x.x.x>/bin
# Then
./gem install colorls
Now you are ready to link this library to the default one you installed before
ln -s /opt/homebrew/lib/ruby/gems/<x.x.x>/bin/colorls /usr/local/bin/colorls
I have a custom .zshrc
with all of my custom settings including a customized prompt, aliases, PATH variables, colors and more.
If you do not want to go through the process of customizing your .zshrc
, you can install Oh My ZSH Bash to get a ton of customizations out of the box.
I store my .zsh
on github here so I can copy it over to any machine I'm setting up.
Copy this file (or create your own) in your home directory:
cd ~
curl -O https://raw.githubusercontent.com/hayato-eth/mac-setup/main/src/zsh/.zshrc
- zsh-completions - Additional completion definitions for ZSH
- zsh-autosuggestions - Additional suggestions for ZSH
- fast-syntax-highlighting - Feature-rich syntax highlighting for ZSH
My Mac came with git
version 2.32.1
, we can use brew to install the latest version of git
:
git --version
brew install git
Open a new tab / window to start using the latest version:
git --version
Configure git with your name / email and preferred editor:
git config --global user.name Vinicius Rocha
git config --global user.email [email protected]
git config --global core.editor vim
git config --global init.defaultBranch main
Configuration for commits:
- ffmpeg - edit videos from the command line
brew install ffmpeg
I know this feature is built in to a lot of other operating systems, but it is not built in to a Mac, so we need an app for it.
I use rectangle to move and resize windows using keyboard shortcuts. I used to use spectacle, but rectangle is more regularly maintained and allows me to use all of the same keyboard shortcuts as spectacle.
I highly recommend installing this and memorizing the keyboard shortcuts. Fluid and seamless window management is key to being productive while coding.
brew install rectangle
- 1Password - The perfect password manager for ecosystem apple
- Brave - Preferred Web browser
- Android File Transfer - Transfer files to / from my android phone
- Android Platform Tools - Installs
adb
without the need for the full android studio - Cleanshot - The ultimate screen recording app made for macOS
- Discord - Messaging / Community
- Docker Desktop - The fastest way to containerize applications
- Fig - Boost terminal integration
- Figma - UI Design Tool
- Insomnia - HTTP / REST / GraphQL tester / requester
- Raycast - An app that allows you to control just about every aspect of your MacBook
- Slack - Messaging / Community
- VLC - I use VLC to watch videos instead of the built in QuickTime.
- Visual Studio Code - Code Editor
You can install them in one go by placing them all into a text file and then running brew install:
1password
android-file-transfer
android-platform-tools
brave-browser
cleanshot
discord
fig
figma
insomnia
raycast
slack
visual-studio-code
vlc
xargs brew install < apps.txt
These are my preferred settings for Finder
and the Dock
.
- Finder -> Preferences
- General -> Show these on the desktop -> Select None
- I try to keep my desktop completely clean.
- General -> New Finder windows show -> Home Folder
- I prefer to see my home folder in each new finder window instead of recent documents
- Advanced -> Show all filename extensions -> Yes
- Advanced -> Show warning before changing an extension -> No
- Advanced -> When performing a search -> Search the current folder
- General -> Show these on the desktop -> Select None
- View
- Show Status Bar
- Show Path Bar
- Show Tab Bar
I like to see my network traffic, CPU temp / usage and RAM usage at a glance.
I used to use stats, a FOSS menu bar stats app.
In each widget, a key setting to look for is under "widget settings", choose "merge widgets into one".
brew install stats
I like to have a calendar in the menu bar that I can quickly look at. stats does not include one, so I found cron. It seems fine for my needs.
brew install cron
I use Brave because it is open source based on Chromium and it focuses heavily on performance and user privacy.
I use the following extensions to help me while developing:
- ColorZilla
- Advanced Eyedropper, Color Picker, Gradient Generator and other colorful goodies.
- CSS Peeper
- CSS Peeper is a CSS viewer tailored for Designers. Get access to the useful styles with our Chrome extension.
- Designer Daily Report
- This extension opens a daily Designer Report on a background tab (non-distracting) roughly around 00:00AM PST time as the report is ready.
- Image Downloader
- Browse and download images on the web.
- JSON Viewer
- It is a Chrome extension for printing JSON and JSONP.
- Octotree
- Browser extension that enhances GitHub code review and exploration.
- Panda 5
- Panda is the simple free newsreader. Discover the best tools, resources, and inspiration in the world of design and tech. Find everything in one place.
- React Developer Tools
- Adds React debugging tools to the Chrome Developer Tools.
- Redux DevTools
- The extension provides power-ups for your Redux development workflow. Apart from Redux, it can be used with any other architectures which handle the state.
- Responsive Viewer
- A Chrome extension to show multiple screens in one view while developing responsive websites/applications.
I use nvm to manage the installed versions of Node.js on my machine. This allows me to easily switch between Node.js versions depending on the project I'm working in.
See installation instructions here.
OR run this command (make sure v0.39.3 is still the latest)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
After installation you'll want to add the following to your .bash_profile / .zshrc etc.
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Now that nvm is installed, you can install a specific version of node.js and use it:
nvm install --lts
node --version
There are a few global node modules I use a lot:
- lite-server
- Auto refreshing static file server. Great for working on static apps with no build tools.
- license
- Auto generate open source license files
- gitignore
- Auto generate
.gitignore
files base on the current project type
- Auto generate
- yarn
- Is a package manager that doubles down as project manager.
- pnpm
- Is a package manager that doubles down as project manager.
- @angular/cli
- The Angular CLI to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
npm install -g lite-server license gitignore yarn pnpm @angular/cli
VS Code is my preferred code editor.
You can view all of my VS Code settings / extensions here.
2 of the most notable settings are:
{
"editor.linkedEditing": true,
"editor.snippetSuggestions": "top"
}
- editor.linkedEditing
- Automatically edit a closing tag when editing an opening tag
- editor.snippetSuggestions
- Puts the most relevant auto complete options at the top
I use an app called Time Out.
I have it setup to show:
- 10 second micro break every 15 minutes
- 5 minute long break every 60 minutes