Oh My Zsh
Install iTerm2
brew cask install iterm2
Install oh-my-zsh
via curl
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
via wget
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
Themes
ZSH_THEME="your theme name"
source ~/.zshrc
NOTE: Some themes need to install Powerline-patched font to render correctly.
git clone https://github.com/powerline/fonts --depth=1
cd fonts
./install.sh
cd .. && rm -rf fonts
To test if your terminal and font support it, copy the following command to your terminal:
echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
Uninstall
Run ./uninstall.sh
to uninstall all Powerline Fonts. You can also copy the quick installation commands changing only the line ./install.sh
to ./uninstall.sh
.
Plugins
-
gst => git status gaa => git add --all gb => git branch gba => git branch -a gcmsg => git commit -m gco => git checkout
-
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions plugins=(... zsh-autosuggestions)
-
git clone https://github.com/agkozak/zsh-z ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-z plugins=(... zsh-z)
-
git clone https://github.com/paulirish/git-open.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/git-open plugins=(... git-open) alias go="git-open"
Proxy
# Proxy ON
export http_proxy=socks5://127.0.0.1:1080
export https_proxy=socks5://127.0.0.1:1080
# Proxy OFF
noproxy () {
unset http_proxy
unset https_proxy
echo "HTTP Proxy off"
}
Alias
alias vi="emacsclient -c -a ''"
alias vid='emacs --daemon'
alias go="git-open"
Resources
- ohmyzsh: https://ohmyz.sh/
- OMZ themes: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
- OMZ plugins: https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
- My dotfiles: https://github.com/vritser/dotfiles