This use Makefile as command line to do all installation to simplify my life.
Install HomeBrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Full instruction: https://github.com/robbyrussell/oh-my-zsh
Pre-requisite https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
In nutshell:
brew install zsh zsh-completions
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
In ~/.zshrc
file:
ZSH_THEME="agnoster"
plugins=(git tmux vi-mode docker)
export DEFAULT_USER=singachea
brew install tmux
brew install reattach-to-user-namespace
Download iTerm2
https://gist.github.com/kevin-smets/8568070
Inside third-party/fonts
, you can follow instruction https://github.com/powerline/fonts by using:
./install.sh
The original package: https://github.com/mbadolato/iTerm2-Color-Schemes.
Install git submodule
git submodule init
git submodule update
brew install fzf
echo "[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh" >> ~/.zshrc
Host jumpbox
HostName 172.0.0.1
User username_here
ForwardAgent yes
IdentityFile ~/.ssh/username_here-jumpbox.pem
Host jumpbox-second
Hostname 172.0.0.2
User username_here
ProxyCommand ssh -t jumpbox -W %h:%p
LocalForward 7777 redishost.com:6379
You can install this directly:
brew cask install "$(pwd)"/lib/casks/xee2.rb