-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_onchange_macos_settings.sh
30 lines (25 loc) · 1.19 KB
/
run_onchange_macos_settings.sh
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
#!/bin/sh
# Sources
# * https://gist.github.com/romanhaa/9804183f242991007b316a59c4ba5e5a
# * https://marketmix.com/de/mac-osx-umfassende-liste-der-terminal-defaults-commands/
# * TODO: https://github.com/rusty1s/dotfiles/blob/master/macos/defaults.sh
# Dock
defaults write com.apple.dock "orientation" -string "left"
defaults write com.apple.dock autohide -bool true
# Finder
defaults write NSGlobalDomain "AppleShowAllExtensions" -bool "true"
defaults write com.apple.finder ShowStatusBar -bool true
defaults write com.apple.finder ShowPathbar -bool true
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
defaults write com.apple.finder NewWindowTarget PfHm
killall Finder
chflags nohidden ~/Library
# Mission Control
defaults write com.apple.dock "mru-spaces" -bool "false"
killall Dock
# Safari
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true