Created
May 3, 2022 11:40
-
-
Save CheyiLin/6e0683c35aa2e94a1f19c688c7d8b41c to your computer and use it in GitHub Desktop.
macOS Tweaks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.techjunkie.com/hidpi-mode-os-x/ | |
sudo defaults write /Library/Preferences/com.apple.windowserver.plist DisplayResolutionEnabled -bool true | |
defaults write com.apple.dock autohide-delay -int 0 | |
defaults write com.apple.dock autohide-time-modifier -float 0.4 | |
killall Dock | |
defaults write bluetoothaudiod "Enable AptX codec" -bool true | |
defaults write bluetoothaudiod "Enable AAC codec" -bool true | |
# https://www.cleverfiles.com/help/mac-fonts-text-blurry.html | |
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO | |
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 | |
defaults write com.apple.notificationcenterui bannerTime 20 | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
defaults write -g NSInitialToolTipDelay -int 500 | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# https://medium.com/@Clovis_app/configuration-of-a-beautiful-efficient-terminal-and-prompt-on-osx-in-7-minutes-827c29391961 | |
brew cask install iterm2 | |
brew cask install keepassxc | |
# https://itnext.io/upgrading-bash-on-macos-7138bd1066ba | |
# https://itnext.io/programmable-completion-for-bash-on-macos-f81a0103080b | |
brew install bash | |
brew install coreutils | |
brew install grc | |
xcode-select --install | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
sudo spctl --master-disable | |
# disable ReportCrash | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist | |
/etc/pam.d/sudo | |
# sudo: auth account password session | |
auth sufficient pam_tid.so | |
# Big Sur modify system | |
(reboot to recovery) | |
$ csrutil disable | |
(reboot to recovery again) | |
$ csrutil authenticated-root disable | |
$ reboot | |
(mount live root fs, modify what you want) | |
a. $ diskutil mount disk1s5 (may mount at "/Volumes/System 1") | |
b. $ sudo mount -o nobrowse -t apfs /dev/disk1s5 MOUNT_PATH | |
(create snapshot) | |
$ sudo bless --folder MOUNT_PATH/System/Library/CoreServices --bootefi --create-snapshot | |
$ reboot | |
# disable 'try safari' notification | |
defaults write com.apple.coreservices.uiagent CSUIHasSafariBeenLaunched -bool YES | |
defaults write com.apple.coreservices.uiagent CSUIRecommendSafariNextNotificationDate -date 2099-01-01T00:00:00Z | |
# restore desktop functions | |
defaults write com.apple.finder CreateDesktop true; killall Finder | |
# install Rosetta 2 https://blog.davy.tw/posts/tips-on-m1-mac/ | |
softwareupdate --install-rosetta --agree-to-license |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment