-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacsetup.sh
184 lines (150 loc) · 3.4 KB
/
macsetup.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# Let us not forget
read -p "Did you do the steps in readme?(y/n) " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
# Xcode stuff
xcode-select -install
sudo xcrun cc
# Switch to z-shell
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Get rid of unwanted Python
#sudo rm -rf /Library/Frameworks/Python.framework
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Take ownership
sudo chown -R $USER /usr/local/
# Update homebrew recipes
brew update
# Install brew-file
brew install rcmdnk/file/brew-file
# Install Dropbox
#brew cask install dropbox
#fi
## Need brewfile from dropbox
#read -p "Sign in to Dropbox, then continue with y. (y/n) " -n 1 -r
#echo # (optional) move to a new line
#if [[ $REPLY =~ ^[Yy]$ ]]
#then
#export HOMEBREW_BREWFILE=~/Dropbox/dotfiles/Brewfile
# get Brewfile from GitHub
brew set_repo
https://github.com/spktklr/Brewfile
brew file install
## Install GNU core utilities (those that come with OS X are outdated)
#brew install coreutils
## Install GNU `find`, `locate`, `updatedb`, and `xargs`, g-prefixed
#brew install findutils
## Install Bash 4
#brew install bash
## Install more recent versions of some OS X tools
#brew tap homebrew/dupes
#brew install homebrew/dupes/grep
##$PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH
## Vim
#brew install macvim --with-override-system-vim
#brew linkapps
#binaries=(
##ffmpeg
##graphicsmagick
##hub
##node
##rename
##sshfs
##trash
##tree
##webkit2png
##zopfli
#ack
#cabextract
#cmake
#git
#mackup
#python
#)
#echo "installing binaries..."
#brew install ${binaries[@]}
#brew cleanup
## Apps
#brew install caskroom/cask/brew-cask
#apps=(
##appcleaner
##arq
##atom
##cloudup
##flash
##flux
##hazel
##karabiner
##mailbox
##nvalt
##qlcolorcode
##qlmarkdown
##qlprettypatch
##qlstephen
##quicklook-json
##screenflick
##seil
##shiori
##sketch
##spotify
##sublime-text3
##tower
##transmission
##transmit
#adobe-creative-cloud
#alfred
#bettertouchtool
#dropbox
#firefox
#google-chrome
#iterm2
#seil
#skype
#slack
#vagrant
#vagrant-manager
#virtualbox
#vlc
#)
## Install apps to /Applications
## Default is: /Users/$user/Applications
#echo "installing apps..."
#brew cask install --appdir="/Applications" ${apps[@]}
## Link Alfred
#brew cask alfred link
## Unlink python
#brew unlink python
## Fonts
#brew tap caskroom/fonts
#fonts=(
#font-m-plus
#font-clear-sans
#font-roboto
#font-source-code-pro
#font-inconsolata
#)
## Install fonts
#echo "Installing fonts..."
#brew cask install ${fonts[@]}
# hide older system vim
sudo mv /usr/bin/vim /usr/bin/vim72
# Setup
sh "scripts/osx-for-hackers.sh"
cd ~/Downloads
mkdir consolas
cd consolas
curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
cabextract PowerPointViewer.exe
cabextract ppviewer.cab
open CONSOLA*.TTF
echo "Click Install font."
echo "Then login to Dropbox and run"
echo "mackup restore"
echo "Once restored, run"
echo "sh scripts/YouCompleteMe.sh"
fi