Skip to content

Instantly share code, notes, and snippets.

@dchakro
Last active October 28, 2025 16:49
Show Gist options
  • Select an option

  • Save dchakro/4d59428adaf3dd40183dcfa53bfecc91 to your computer and use it in GitHub Desktop.

Select an option

Save dchakro/4d59428adaf3dd40183dcfa53bfecc91 to your computer and use it in GitHub Desktop.
Make OSX great Again!
## Mac OS is my favorite operating system but some of the bundled CLI tools are either outdated or slow to the new-age counterparts
# With the hardworks of people over at Homebrew, getting alternatives is a breeze.
## Here's how to do it:
# STEP-1 Install brew.sh
# Visit https://brew.sh
# STEP-2 Install brewlog (allow you to keep a log of brew activity, i.e. where the files are installed, what modifications [if any] were done)
# Visit https://github.com/dchakro/brewlog
# STEP-3 Install
# A) better than what MacOS ships with
brewlog install gzip less nano grep coreutils git htop imagemagick openssh rsync rclone tmux xxhash xz gawk watch gcc pigz
# B) Rust speedsters
brewlog install bat exa fd sd dust bandwhich hyperfine bottom ripgrep
# C) Misc and casks
brewlog install bitwarden-cli git-filter-repo iperf3
# alacritty - fast terminal emulator
# maccy - clipboard amnager
# joplin - keeper of the notes (j.k. Note-taking app)
# osxfuse - mount FUSE volumes
# ql* - quicklook extensions
# (Also checkout https://github.com/sbarex/SourceCodeSyntaxHighlight)
brewlog cask install alacritty maccy joplin osxfuse qlmarkdown qlimagesize ql stephen qlvideo qlcolorcode quicklook-csv
# OPTIONAL
# bandwhich has more functionality but bmon can run without sudo
brewlog install bmon
# curl does most things for me
brewlog install wget
#!/bin/sh
# save-hotkeys.sh
# Original author: Alan Shutko, https://superuser.com/users/164613/alan-shutko
# Found: https://superuser.com/a/781526
DESTFILE=./install-hotkeys.sh
echo '#!/bin/bash' > $DESTFILE
defaults find NSUserKeyEquivalents | sed -e "s/Found [0-9]* keys in domain '\\([^']*\\)':/defaults write \\1 NSUserKeyEquivalents '/" -e "s/ NSUserKeyEquivalents = {//" -e "s/};//" -e "s/}/}'/" >> $DESTFILE
echo killall cfprefsd >> $DESTFILE
chmod a+x $DESTFILE
#!/bin/bash
defaults write com.apple.finder NSUserKeyEquivalents ' {
"Merge All Windows" = "@m";
}'
defaults write com.coteditor.CotEditor NSUserKeyEquivalents ' {
"Comment Out" = "@$c";
"Shift Left" = "@$8";
"Shift Right" = "@$9";
Uncomment = "@$c";
}'
defaults write com.phaseone.captureone10 NSUserKeyEquivalents ' {
"Hide Viewer Labels" = "@i";
"Show Viewer Labels" = "@i";
}'
defaults write Apple Global Domain NSUserKeyEquivalents ' {
Minimize = "@~^m";
}'
defaults write com.apple.Preview NSUserKeyEquivalents ' {
"Adjust Size..." = "@$r";
"Export..." = "@$s";
}'
defaults write com.seriflabs.affinityphoto NSUserKeyEquivalents ' {
"Export..." = "@$s";
}'
defaults write com.microsoft.Word NSUserKeyEquivalents ' {
"Page Width" = "@0";
"Whole Page" = "@9";
}'
defaults write com.seriflabs.affinitydesigner NSUserKeyEquivalents ' {
"Export..." = "@$s";
}'
defaults write com.apple.iWork.Keynote NSUserKeyEquivalents ' {
"Fit Slide" = "@9";
}'
defaults write com.apple.Safari NSUserKeyEquivalents ' {
"Export as PDF..." = "@$s";
}'
defaults write com.ocenaudio NSUserKeyEquivalents ' {
"11-Band Graphic Equalizer..." = "@e";
Normalize = "@~n";
"Normalize..." = "@$n";
}'
defaults write com.wolfrosch.Gapplin NSUserKeyEquivalents ' {
"Export..." = "@$s";
}'
killall cfprefsd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment