-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_cosmic_mac.sh
86 lines (64 loc) · 2.3 KB
/
install_cosmic_mac.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
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
#!/bin/sh
# https://adoptopenjdk.net/
brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk16
brew install --cask sublime-text
brew install --cask dash
brew install --cask dropbox
brew install --cask docker
brew install --cask android-file-transfer
# python version management
brew install pyenv
echo 'eval "$(pyenv init --path)"' >> ~/.zprofile
# For Dashboard
# dashboard-enabled-state = 1 [off]
# dashboard-enabled-state = 2 [As space]
# dashboard-enabled-state = 3 [As Overlay]
defaults write com.apple.dashboard dashboard-enabled-state -int 3
# killall Dock
# For Dock
# Automatically hide and show the Dock
defaults write com.apple.dock autohide -bool true
# Hot corner > Bottom right screen corner > Dashboard
defaults write com.apple.dock wvous-br-corner -int 7
defaults write com.apple.dock wvous-br-modifier -int 0
# killall Dock
# For Finder
# show hidden files
defaults write com.apple.finder AppleShowAllFiles YES
# Finder > View > As Columns
# As Icons = icnv
# As List = Nlsv
# As Cover Flow = Flwv
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
# ShowExternalHardDrivesOnDesktop
# ShowHardDrivesOnDesktop
# ShowPathbar
# ShowPreviewPane
# ShowRemovableMediaOnDesktop
# ShowSidebar
# ShowStatusBar
# ShowTabView
# Finder > View > Show Status Bar
defaults write com.apple.finder ShowStatusBar -bool true
# Finder > View > Show Path Bar
defaults write com.apple.finder ShowPathbar -bool true
# Finder > View > Show Tab Bar
defaults write com.apple.finder ShowTabView -bool true
# killall Finder
# For menue bar
# not working
# defaults write com.apple.systemuiserver menuExtras -array \
# "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" \
# "/System/Library/CoreServices/Menu Extras/Battery.menu" \
# "/System/Library/CoreServices/Menu Extras/Volume.menu"
# not working
# defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.bluetooth" -bool true
# defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.battery" -bool true
# defaults write com.apple.systemuiserver "NSStatusItem Visible com.apple.menuextra.volume" -bool true
# killall SystemUIServer
# Kill affected apps
for app in "Dock" "Finder" "SystemUIServer"; do
killall "${app}" > /dev/null 2>&1
done
echo "You may need to restart your machine."