How to setup a distraction free macOS to focus on shipping code
Last week, I was chilling on Netflix and I found one famous TV Show with Marie Kondo. Sheās a Japanese organising consultant and author. Organisingā¦ Consultantā¦ Wow! We are really living in exciting timesā¦
And then I found this great article by Rubens Cantuni about organizing your sketch files.
I got hoocked.
Before opening my own agency of cleaning consultant, I decided to share with you my best hacks to tidy your Mac and transform your developer life.
Your real life begins after putting your house in order.
ā Marie Kondo
Spark joy in your terminal
As a developer, I spend around 1h / day in the terminal. Thatās literally my remote control for everything. My awesome and well-organized naming framework for my coding projects is this one:
~/workspace/\<CLIENT\>/\<PROJECT\_NAME\>
I am using iTerm2 to split, and navigate across projects and files. And if you are using the script zāāājump around, you are literally 125% more effective than people using the keyboard + mouse combo.
I have plenty of shortcuts thanks to oh-my-zsh āwith this clean theme called refinedā to be super efficient. If I need to keep only one productivity hack , I would definitely choose this: Launch your editor form the terminal.
// Sublime Text
st .
// Atom
atom .
// VSCode
code .
- Install sublime plugin for oh-my-zsh
- Install atom and apm on Mac
- Install code command in PATH for VSCode
Everything has its place in your Finder
Letās face it, the proportion of mess on your machine is exponential. If you donāt set some rules at the beginning, after 1 month your new shiny computer is full of crap.
Here is my Shinto Workflow for cleaning and organizing files properly:
Add Favourites
Open your terminal and write open .
to open the finder. Remove all the distractions links and add the favourites ones like this.
Create a screenshot folder
By default, all your screenshot are saved on your desktop. I changed that for another folder calledā¦ Screenshots
.
# Save screenshots to the Screenshot (or elsewhere)
defaults write com.apple.screencapture location ${HOME}/Screenshots
Store vertically
You canāt do 2 things at the same time. So why are you keeping the dock with all the applications available on your Mac? You can launch them with your keyboard thanks to spotlight and the shortcut ā
+ space
.
Marie Rondo says storing vertically will save space and allow your belongings to become more eye-catching. Letās hide our dock when we donāt need it with a left vertical position.
Custom Window Organizer
Windows users are going to love this one: you can tilling and organise your applications since a long time with windows
+ ā
.
On macOS we have the fullscreen mode. But itās not really powerfull, and itās complicated to assign keyboard shortcuts to be effective.
I am using Divvy since ages to fix this issue, I can split my screens and I have differents shortcuts for my needs: full screen, half-left, top-right... You can pick-up any windows manager to āHikidashiā your working days.
Clean your menu bar icons
Everything you own needs his own designated space. Dozer is a little application to hide icons on your menu bar. With this hack you can finally get rid of the spotlight icon! The easiest way to install it is with brew
.
$ brew cask install dozer
You can check on GitHub the installation notes.
Before:
After:
Tidy by category
Yes! I am looking at you modern full stack developer! I know you have the hype and can solve the cancert problem with JavaScript, but in my opinion, you have too many tabs opened.
That means a lack of focus and we are going to be late for the mars missions because you are not focus.
You can pin tabs if you want to keep something, and try to organise your browsing experience by category :
- Google Chrome: Work emails and backlog in ZenHub
- Safari: React Native releases on app Store and play store
- Google Chrome Canary: Personal emails and youtube
- Firefox developer Edition: Main browser for everything else
After theses small hacks you gonna have the same kind of zen distraction-free laptop, ready to focus and ship code!
š Read this story later in Journal.
Top comments (0)