oh-my-zsh is a community-driven framework for managing your zsh configuration. The great thing about it is the plugin variety that you can install, and the amazing themes you have at your disposal. All of that paired with an auto-update tool that makes your life much easier.
To install it just run this command:
$ curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Create an alias files where we will place all our aliases, let's call it .zsh_aliases
. Here is my file:
alias edit="${EDITOR} $1"
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
Finally add this line to your .zshrc
so your aliases files is sourced correctly.
[ -e "${HOME}/.zsh_aliases" ] && source "${HOME}/.zsh_aliases"
Antigen is a small set of functions that help you easily manage your shell (zsh) plugins, called bundles. Its like a package manager for zsh shells.
To install just run this commands:
$ git clone https://github.com/zsh-users/antigen .antigen
$ source ~/.antigen/antigen.zsh
Now you can customize your shell with a theme, choosing one from this list. My personal choice is the pygmalion theme.
You can choose the plugins you want from this list.
Both theme and plugins are going to be placed on the antigen configuration in our .zshrc
file. Here's my own:
source /.antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle atom
antigen bundle aws
antigen bundle bundler
antigen bundle common-aliases
antigen bundle gem
antigen bundle git
antigen bundle git-extras
antigen bundle github
antigen bundle httpie
antigen bundle jsontools
antigen bundle last-working-dir
antigen bundle osx
antigen bundle ruby
antigen bundle rvm
antigen bundle wd
antigen bundle colored-man
antigen bundle colorize
antigen bundle cp
antigen bundle extract
antigen bundle brew
antigen bundle brew-cask
antigen bundle unixorn/autoupdate-antigen.zshplugin
antigen bundle command-not-found
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions src
antigen bundle zsh-users/zsh-history-substring-search
# Load the theme.
antigen theme pygmalion
# Tell antigen that you're done.
antigen apply
That's right, we've fallen into shell's darksness!