-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetupmac.sh
More file actions
executable file
·97 lines (79 loc) · 1.59 KB
/
setupmac.sh
File metadata and controls
executable file
·97 lines (79 loc) · 1.59 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
96
97
# 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
# Update homebrew recipes
brew update
# 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
#install some binaries
binaries=(
graphicsmagick
webkit2png
rename
zopfli
ffmpeg
python
sshfs
trash
node
tree
ack
hub
git
)
echo "installing binaries..."
brew install ${binaries[@]}
#clean up
brew cleanup
brew install caskroom/cask/brew-cask
# Apps
apps=(
android-file-transfer
android-studio-bundle
angry-ip-scanner
dropbox
google-chrome
google-hangouts
slack
spotify
flash
iterm2
shiori
steam``
sublime-text
virtualbox
atom
vlc
skype
transmission
)
# Install apps to /Applications
# Default is: /Users/$user/Applications
echo "installing apps..."
brew cask install --appdir="/Applications" ${apps[@]}
# fonts
brew tap caskroom/fonts
fonts=(
font-m-plus
font-clear-sans
font-roboto
)
# install fonts
echo "installing fonts..."
brew cask install ${fonts[@]}
# install oh my zsh
curl -L http://install.ohmyz.sh | sh
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh