-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrew.sh
102 lines (83 loc) · 2.79 KB
/
brew.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
# If we on macOS, install homebrew and tweak system a bit.
if [[ `uname` == 'Darwin' ]]; then
# When setting up a new Mac, you may want to install some common Homebrew
# formulae
which -s brew
if [[ $? != 0 ]]; then
echo 'Installing Homebrew...'
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Install command-line tools using Homebrew.
# Make sure we’re using the latest Homebrew.
brew update
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
# Install some other useful utilities like `sponge`.
brew install moreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
brew install findutils
# Install GNU `sed`, overwriting the built-in `sed`.
brew install gnu-sed --with-default-names
# Install Bash 4.
# Note: don’t forget to add `/usr/local/bin/bash` to `/etc/shells` before
# running `chsh`.
brew install bash
brew install bash-completion@2
# Switch to using brew-installed bash as default shell
if ! fgrep -q '/usr/local/bin/bash' /etc/shells; then
echo '/usr/local/bin/bash' | sudo tee -a /etc/shells;
chsh -s /usr/local/bin/bash;
fi;
# Install `wget` with IRI support.
brew install wget --with-iri
# Install more recent versions of some macOS tools.
brew install ctags
brew install vim --with-override-system-vim
brew install grep --with-default-names
brew install less
brew install openssh
# Git
brew install git
brew install tig
brew install hub
brew install git-lfs
brew install diff-so-fancy
brew install grip
# Install other useful binaries
brew install the_silver_searcher
brew install imagemagick --with-webp
brew install rename
brew install node
brew install tree
#
# Installing common apps and quick look plugins
echo ''
echo 'Installing common apps and quick Look plugins...'
echo ''
# Apps
# Program
brew cask install iterm2
brew cask install imagealpha
brew cask install imageoptim
brew cask install licecap
# Design
brew cask install sketch
# Browsers
brew cask install google-chrome
brew cask install google-chrome-canary
brew cask install firefox
brew cask install firefox-developer-edition
# Quick look plugins
brew cask install quicklook-json
brew cask install qlmarkdown
brew cask install qlstephen
brew cask install qlcolorcode
#
# Installing common fonts
echo ''
echo 'Installing common fonts...'
echo ''
brew tap homebrew/cask-fonts
brew cask install font-inconsolata
fi