Skip to content

Commit

Permalink
add macos setup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohongxuan committed Mar 12, 2024
1 parent d1eed09 commit e4f17fc
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions macos_setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@


# Enable 3-finger drag
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true

# Allow quitting via ⌘Q
defaults write com.apple.finder QuitMenuItem -bool true

# Disable warning when changing a file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

# Show all files and their extensions
defaults write com.apple.finder AppleShowAllExtensions -bool true
defaults write com.apple.finder AppleShowAllFiles -bool true


# Search in current folder by default
defaults write com.apple.finder FXDefaultSearchScope -string SCcf


# Allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true

defaults write -g AppleKeyboardUIMode -int 3

# vim press key
defaults write -g ApplePressAndHoldEnabled 0

# Avoid creating .DS_Store files on USB or network volumes

defaults write com.apple.desktopservices dsdontwriteusbstores -bool true
defaults write com.apple.desktopservices dsdontwritenetworkstores -bool true

0 comments on commit e4f17fc

Please sign in to comment.