-
Notifications
You must be signed in to change notification settings - Fork 0
/
auto.sh
executable file
·56 lines (27 loc) · 2.09 KB
/
auto.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
if [[ "$OSTYPE" == "linux-gnu" ]]; then
echo "this is linux"
cp ./.zshrc ~/
cp ./.vimrc ~/
mkdir -p ~/.vim/colors
cp ./solarized.vim ~/.vim/colors
elif [[ "$OSTYPE" == "darwin"* ]]; then
osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to not dark mode'
defaults write com.apple.dock persistent-apps -array
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/Launchpad.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/Google Chrome.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.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>'
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>'
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Tolsadus/42homebrewfix/master/install.sh)"
brew install npm
defaults write com.apple.dock tilesize -int 75
cp ./.zshrc ~/
killall Dock
clear
echo "\n\n\n\n\n\n\n\n\n\n\nPlease terminate terminal for changes to take effect\nThis will close all Terminals!!"
open -a "Google Chrome" https://wethinkcodestudents.slack.com/
cp .vimrc ~/
mkdir -p ~/.vim/colors
cp solarized.vim ~/.vim/colors
osascript -e 'tell application "Terminal" to quit'
fi