DEV Community

loading...

My New Mac Setup

swyx profile image swyx Originally published at swyx.io Updated on ・5 min read

I set up a new Mac for work today. Here's what I did immediately:

npm i -g diff-so-fancy
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
Enter fullscreen mode Exit fullscreen mode

You can also diff with this bash function dif() { git diff --color --no-index "$1" "$2" | diff-so-fancy; } or with VSCode code --diff file1.js file2.js.

You can also try https://github.com/dandavison/delta


Other good "new laptop setup" lists:

Discussion (10)

pic
Editor guide
Collapse
benjmichel profile image
Benjamin Michel

Thanks! Another tool that's I love is hyperswitch (bahoom.com/hyperswitch) to easily switch between the windows of the same app.

Collapse
swyx profile image
swyx Author

can't you just do "command + `"?

Collapse
benjmichel profile image
Benjamin Michel

This shortcut has never worked on my Mac. I thought it was caused by my azerty keyboard layout and I changed the shortcut in my MacOS settings, but it still didn't work.

Thread Thread
swyx profile image
swyx Author

too bad.

Collapse
guneyozsan profile image
Guney Ozsan

"...remap command+Q to literally anything else..."
As a Windows user I don't know how many times I closed all browser windows of my friends trying to make an @ sign which is AltGr+Q in Turkish Q keyboards.

Collapse
sunnysingh profile image
Sunny Singh

Thanks for sharing your setup! I didn't know about cursor size, look up & data detectors, and I feel stupid for not realizing there was a path bar in Finder (unless it's a recent addition).

Collapse
swyx profile image
swyx Author

apple picks some bad defaults.

Collapse
rodderodrod profile image
jwe

I dont get it ...

Collapse
niorad profile image
Antonio Radovcic

I'd never have guessed that cmd-q might be an issue, what's your alternative shortcut for that?

Collapse
martinraag profile image
Martin Raag

Thanks. Learned about a few more tools to try out - namely Rocket and Clipy.