-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmacos-init
More file actions
executable file
·53 lines (36 loc) · 1.76 KB
/
macos-init
File metadata and controls
executable file
·53 lines (36 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
# adapted from https://github.com/nicknisi/dotfiles/blob/main/bin/dot-macos
if [[ "$(uname)" != "Darwin" ]]; then
echo "Cannot run this command on non-macOS system. Exiting."
exit 1
fi
# Finder: show all filename extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
# show hidden files by default
defaults write com.apple.Finder AppleShowAllFiles -bool false
# only use UTF-8 in Terminal.app
defaults write com.apple.terminal StringEncodings -array 4
# expand save dialog by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
# show the ~/Library folder in Finder
chflags nohidden ~/Library
# Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Enable subpixel font rendering on non-Apple LCDs
defaults write NSGlobalDomain AppleFontSmoothing -int 2
# Use current directory as default search scope in Finder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
# Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
# Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
# Disable press-and-hold for keys in favor of key repeat
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
# Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 15
# Disable annoying "click wallpaper hides all apps" feature
defaults write com.apple.WindowManager EnableStandardClickToShowDesktop -bool false
# Killing affected applications
for app in Safari Finder Dock Mail SystemUIServer; do killall "$app" >/dev/null 2>&1; done