Table of Contents
New Apple Mac Cheat Sheet
This is a cheat sheet for Linux users who have just unwrapped a new Mac. It’s an ongoing battle but this may help you.
Saving Screenshots to a Folder instead of the Desktop
If you want to do this with Shift Command 4, you’re on your own.
If you want to do this with Shift Command 5, here is a guide:
Brew or Otherwise
One dilemma you’ll face is software can be installed by Brew or downloaded. It seems there is quite the difference at times so choose your poison wisely. Generally brew seems to be close to
yum so I tend to go with it rather.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/eugene/.zprofile\n eval "$(/opt/homebrew/bin/brew shellenv)" sudo chown -R your-username /opt/homebrew/var/log chmod u+w /opt/homebrew/var/log
Brew Classics for Linux Users
brew install mysql brew install wget brew install mc brew install ncdu brew install pwgen brew install redis brew services start redis brew install telnet
You might find yourself in a knot and want to start over. Here are instructions for uninstalling brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)" rm /opt/homebrew/.DS_Store sudo rm -rf /opt/homebrew/Cellar rm -rf /opt/homebrew/Frameworks sudo rm -rf /opt/homebrew/etc sudo rm -rf /opt/homebrew/include sudo rm -rf /opt/homebrew/lib sudo rm -rf /opt/homebrew/opt sudo rm -rf /opt/homebrew/sbin sudo rm -rf /opt/homebrew/share sudo rm -rf /opt/homebrew/var sudo rm -rf /opt/homebrew
You can install PHP using
brew or using Laravel Herd. We prefer Herd:
Visual Studio Code
- Turn on Auto-Save
- brew install libiconv
- brew install cairo
Change Mac hostname
Avoid Process completed after closing terminals.
In Terminal Preferences, in Profiles pane select the Profile you use (should say “default” under it’s name), select sub-pane Shell and change «When the shell exits:» to «Close if the shell exited cleanly». It will not hide the [Process completed] message, but will close the window if exit code was successful.
.composer/vendor/bin to path
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
If you’re coming from a PC to a Mac the thing that will frustrate you most is the keyboard shortcuts. Although a Mac has some remapping tools, it’s a frustration to use and you might have to revert to third-party tools such as Karabiner-Elements. At some stage you might end give up and decide to study the Mac keyboards shortcut documentation. Uhm, they have their own 😉
On a Mac the “Command” key is super important. It’s clearly marked on a Mac keyboard and it’s larger than any such key on a PC keyboard. The ideal candidate for remapping this “Command” key on on a PC keyboard is the Windows key, however, bear in mind the Windows key is small and using it often can be frustrating and lead to mistakes. However, since the Command key is super important this is probably the first key you want to remap.
On a sunny morning in September 2023 I accidently uninstalled Karabiner-Elements and I lost all my key combinations that I had been using for months. This nearly made me cry.
Making End and Home Work
This is hard. On a PC keyboard pressing the End key jumps to the end of the line. I’ve yet to get this right on a Mac.
Even trying this using ChatGPT is so wrong:
This GIST summarized it for you:
Remap Alt Tab
Don’t. Just use Command tab.
It’s very hard to live without this one.
Remap Control-C / Control V
Don’t. Use Command-C / Command V.
Remap Control and the Windows key
This will either make you weep or cry. This software is powerful but so overengineered.
I’m not saying the above screenshot worked. Nothing worked until somewhere else in Mac settings I changed back from Karabiner to Dell Keyboard.
Change Mouse Orientation
It’s called Natural Scrolling in Settings. Turn it off.
Remap End Key
Set default programs to Chrome
Do it in Chrome
Remap control right arrow for scrolling over words
To be figured out
Getting a Mac to stop putting random full stops when typing
To be added