-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_once_9_mac.sh.tmpl
More file actions
46 lines (31 loc) · 1.67 KB
/
run_once_9_mac.sh.tmpl
File metadata and controls
46 lines (31 loc) · 1.67 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
{{ if (eq .chezmoi.os "darwin") -}}
#!/bin/bash
set -eufo pipefail
osascript -e 'tell application "System Preferences" to quit'
###############################################################################
# General UI/UX #
###############################################################################
# Increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
###############################################################################
# Finder #
###############################################################################
# Allow quitting via ⌘ + Q; doing so will also hide desktop icons
defaults write com.apple.finder QuitMenuItem -bool YES
# Show file extensions
defaults write NSGlobalDomain AppleShowAllExtensions -bool YES
# Show hidden files by default
defaults write com.apple.finder AppleShowAllFiles -bool YES
# Disable warning when changing file extension
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Use list view in all Finder windows by default
# Four-letter codes for the other view modes: `icnv`, `clmv`, `glyv`
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
# Disable empty trash warning
defaults write com.apple.finder WarnOnEmptyTrash -bool NO
# Speed up dock auto hide
defaults write com.apple.dock autohide-delay -float 0; killall Dock
{{ end -}}
echo "MacOS config applied"