-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathosx
More file actions
executable file
·95 lines (69 loc) · 3.48 KB
/
Copy pathosx
File metadata and controls
executable file
·95 lines (69 loc) · 3.48 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
### dock ###
# remove all application
defaults delete com.apple.dock persistent-apps
defaults delete com.apple.dock persistent-others
# add application
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/System Preferences.app/</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Firefox.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/iTerm 2.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
defaults write com.apple.dock persistent-apps -array-add '<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>/Applications/Slack.app</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'
# change dock size
defaults write com.apple.dock tilesize -int 40
# set the dock on the right of the screen
defaults write com.apple.dock orientation -string "right"
# do not rearrange space based on recent use
defaults write com.apple.dock mru-spaces -bool false
# restart dock to apply changes
killall Dock
### dock end ###
### finder ###
# set preferred view style
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# New window points to home
defaults write com.apple.finder NewWindowTarget -string "PfHm"
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
# show path bar
defaults write com.apple.finder ShowPathbar -int 1
# show Library folder
chflags nohidden ~/Library/
### finder end ###
### mouse ###
# scroll not "natural"
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
### mouse end ###
### spotlight ###
# remove everything from spotlight but applications
defaults write com.apple.spotlight orderedItems -array \
'{"enabled" = 1;"name" = "APPLICATIONS";}' \
'{"enabled" = 0;"name" = "SYSTEM_PREFS";}' \
'{"enabled" = 0;"name" = "DIRECTORIES";}' \
'{"enabled" = 0;"name" = "PDF";}' \
'{"enabled" = 0;"name" = "FONTS";}' \
'{"enabled" = 0;"name" = "DOCUMENTS";}' \
'{"enabled" = 0;"name" = "MESSAGES";}' \
'{"enabled" = 0;"name" = "CONTACT";}' \
'{"enabled" = 0;"name" = "EVENT_TODO";}' \
'{"enabled" = 0;"name" = "IMAGES";}' \
'{"enabled" = 0;"name" = "BOOKMARKS";}' \
'{"enabled" = 0;"name" = "MUSIC";}' \
'{"enabled" = 0;"name" = "MOVIES";}' \
'{"enabled" = 0;"name" = "PRESENTATIONS";}' \
'{"enabled" = 0;"name" = "SPREADSHEETS";}' \
'{"enabled" = 0;"name" = "SOURCE";}' \
'{"enabled" = 0;"name" = "MENU_DEFINITION";}' \
'{"enabled" = 0;"name" = "MENU_OTHER";}' \
'{"enabled" = 0;"name" = "MENU_CONVERSION";}' \
'{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \
'{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \
'{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}'
### spotlight end ###
### menu bar ###
# display hour in 24h format
defaults write com.apple.menuextra.clock DateFormat -string "EEE dd/MM/yyyy HH:mm"
defaults write NSGlobalDomain AppleICUForce12HourTime -bool false
### menu bar end ###
### security ###
defaults write com.apple.screensaver askForPassword -int 1
### security end ###