# macOS Setup ## Apps ### What I use #### Command-line Tools - [ ] https://iterm2.com/ - [ ] https://ohmyz.sh/ - [ ] https://brew.sh/ - [ ] https://github.com/junegunn/fzf #### General - [ ] https://www.alfredapp.com/ - [ ] https://rectangleapp.com/ - [ ] https://freemacsoft.net/appcleaner/ - [ ] https://pilotmoon.com/scrollreverser/ - [ ] https://github.com/Ji4n1ng/OpenInTerminal - [ ] Screenshot - https://shottr.cc/ - [ ] https://apps.apple.com/us/app/amphetamine/id937984704 #### Backend Development - [ ] https://github.com/derailed/k9s ### Other Recommendations - [ ] https://github.com/gao-sun/eul - [ ] https://github.com/MonitorControl/MonitorControl#readme - [ ] Equalizer - https://eqmac.app/ - [ ] https://apps.apple.com/us/app/otp-manager/id928941247 - [ ] https://hyper.is/ - [ ] Calculator - https://numi.app/ - [ ] Dropzone 4 - https://aptonic.com/ - [ ] Screenshot - https://cleanshot.com/ - [ ] Alt Tab - https://alt-tab-macos.netlify.app/ ## Productivity Notes ### Shortcut for Screenshot `Command + Control + Shift + 4` to snap, at the same time copy. Read more [here](https://www.ias.edu/itg/content/keyboard-shortcuts-capture-screen-shot-mac-os-x). ### Make app switcher displays on both multiple screens ```shell defaults write com.apple.Dock appswitcher-all-displays -bool true killall Dock ``` Ref: https://superuser.com/a/1625752 ### Temporarily disable Gatekeeper to allow third party app installs that are not allowed by Apple ```shell sudo spctl –-master-disable # disable sudo spctl --master-enable # re-enable ``` Ref: https://osxdaily.com/2015/05/04/disable-gatekeeper-command-line-mac-osx/ ### Open project in Xcode from command line At the directory where your `xcworkspace` or `xcodeproj` is, run the following command. ```shell xed . ``` Ref: https://stackoverflow.com/a/52739630/5366727 ### Open project in IntelliJ from command line In IntelliJ, go to `Tools > Create Commandline Launcher` for one-time setup. At the directory where your Java project is, run the following command. ```shell idea . ``` Ref: https://stackoverflow.com/a/49819015/5366727 ### Known Issue: k9s cannot resolve host name through VPN When connected to VPN, k9s might not be able to resolve private host names. This happens when k9s is installed via Homebrew, where Cgo is disabled by default. To overcome this, we can compile and install k9s from source using `go install`. Ref: https://github.com/derailed/k9s/issues/780