0% found this document useful (0 votes)
208 views4 pages

Brew

Setup Mac with Brew

Uploaded by

phong17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
208 views4 pages

Brew

Setup Mac with Brew

Uploaded by

phong17
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

#!

/usr/bin/env bash
CURDIR="$(pwd)"
# Install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
install)"
# gcc
# brew install gcc
# brew pin gcc
# python
brew install python python3
brew pin python python3
# YouCompleteMe's dependencies
brew install llvm cmake boost boost-python
brew pin llvm cmake boost boost-python
# Shells
brew install fish zsh bash bash-completion
brew install fisherman/homebrew-tap/fisherman
# Tmux
brew install tmux reattach-to-user-namespace
# Archiver and Compressor
brew install unrar p7zip
# Mail
brew install gnupg2 mutt notmuch offlineimap
# IRC
brew install irssi weechat
# Browsers
brew install w3m
# brew install w3m lynx links
# File manager
brew install ranger
brew install vifm
# Task
brew install task
brew install tasksh
# brew install todo-txt
# Utilities
brew install wget curl
brew install watch rmtrash tree ssh-copy-id dos2unix aspell asciinema
brew install htop
# brew install htop-osx
brew install fontconfig
brew install gcal youtube-dl ffmpeg libav cmus googler
brew install fpp
# Only HEAD version supports Fish shell
# brew install fpp --HEAD

# Emacs
brew install railwaycat/homebrew-emacsmacport/emacs-mac --with-official-icon
brew linkapps railwaycat/homebrew-emacsmacport/emacs-mac
# VIM editor
brew install vim --with-luajit
brew install macvim --with-luajit
brew linkapps macvim
brew install neovim/neovim/neovim --HEAD
mkdir -p /usr/local/opt/neovim/share/nvim/runtime/spell
cp /usr/local/opt/macvim/MacVim.app/Contents/Resources/vim/runtime/spell/en.utf8.* /usr/local/opt/neovim/share/nvim/runtime/spell/
# brew install rogual/neovim-dot-app/neovim-dot-app --HEAD
# brew linkapps neovim-dot-app
# SCM
brew install git mercurial subversion
brew pin git mercurial subversion
brew install tig
brew install git-lfs hub
#
#
#
#

Ruby
brew
brew
brew

Version
install
install
install

Manager
rbenv rbenv-gemset ruby-build
chruby ruby-install
chruby-fish

# Install Ruby dependencies


brew install openssl libyaml libksba libffi gdbm heroku
brew install passenger
brew pin passenger
brew install nginx --with-passenger
# PostgreSQL 9.4
brew install homebrew/versions/postgresql94
brew pin postgresql94
# MySQL 5.6
brew install homebrew/versions/mysql56
brew pin mysql56
# SQLite
brew install sqlite
brew pin sqlite
# memcached
brew install memcached
brew pin memcached
# NodeJS
brew install nodejs
brew pin nodejs
brew install nvm
# brew install nodenv node-build
# Go
brew install go

brew pin go
# ctags
brew install universal-ctags/universal-ctags/universal-ctags --HEAD
# Search tools like grep
brew install the_silver_searcher the_platinum_searcher ack
# brew install sift
# Need for PaperClip
brew install ghostscript imagemagick
brew pin ghostscript imagemagick
# Install python tools
function all_pip_upgrade() {
if which pip >/dev/null 2>&1; then
pip install --upgrade "$@"
fi
if which pip2 >/dev/null 2>&1; then
pip2 install --upgrade "$@"
fi
if which pip3 >/dev/null 2>&1; then
pip3 install --upgrade "$@"
fi
}
function all_pip_install() {
if which pip >/dev/null 2>&1; then
pip install --user --upgrade "$@"
fi
if which pip2 >/dev/null 2>&1; then
pip2 install --user --upgrade "$@"
fi
if which pip3 >/dev/null 2>&1; then
pip3 install --user --upgrade "$@"
fi
}
# pip install --upgrade setuptools pip
# pip install --user --upgrade neovim csvkit gsutil FontTools
all_pip_upgrade setuptools pip
all_pip_install neovim csvkit gsutil
# all_pip_install FontTools
# AWS Command Line tools
brew install awscli aws-shell
# pip install --user --upgrade awscli aws-shell
# all_pip_install awscli aws-shell
# Xcode tools
brew install xctool
sudo -i -- gem install xcpretty --no-rdoc --no-ri
# sudo -i -- gem install cocoapods xcodeproj xcode-install xcode-yamlizer --no-r
doc --no-ri
# mkdir -p ~/src && chflags hidden ~/src

# cd ~/src
# git clone https://github.com/zackslash/Xcode-Proj-Adder
# cd Xcode-Proj-Adder && xcodebuild && cp bin/XcodeProjAdder /usr/local/bin/
# Format tools
brew install uncrustify clang-format astyle tidy-html5 shellcheck
# pip install --user --upgrade autopep8
all_pip_install autopep8
npm
npm
npm
npm
npm
npm
npm
npm
npm
npm

install
install
install
install
install
install
install
install
install
install

-g
-g
-g
-g
-g
-g
-g
-g
-g
-g

coffee-script
standard
js-beautify
typescript-formatter
jscs
eslint
jshint
jslint
tern
remark

sudo -i -- gem install sass ruby-beautify --no-rdoc --no-ri


# Other Ruby tools
sudo -i -- gem install tmuxinator rubocop starscope --no-rdoc --no-ri
# sudo -i -- gem install gem-ctags --no-rdoc --no-ri
cd "$CURDIR"

You might also like