DEV Community

David Leuliette šŸ¤–
David Leuliette šŸ¤–

Posted on • Originally published at blog.usejournal.com on

Kondo your Mac

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\>
Enter fullscreen mode Exit fullscreen mode

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.

refined theme for iTerm2

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 .
Enter fullscreen mode Exit fullscreen mode

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.

Your computer is infected

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
Enter fullscreen mode Exit fullscreen mode

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.

Split your screen

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
Enter fullscreen mode Exit fullscreen mode

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.

soooooooooooooooooooooooooooooooo many tabs opened

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

At least here I can quit / restore tabs depending on the context

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)