Skip to content

Instantly share code, notes, and snippets.

@juanghurtado
Created January 31, 2012 09:05
Show Gist options
  • Save juanghurtado/1709566 to your computer and use it in GitHub Desktop.
Save juanghurtado/1709566 to your computer and use it in GitHub Desktop.
zshrc for ZSHuery
# Vars
local DOTFILES="$HOME/Dropbox/shell/dotfiles"
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:"
export EDITOR='vim'
# Load aliases files, ZSHuery and VCS info
for config_file ($DOTFILES/**/aliases.zsh) source $config_file
source $DOTFILES/zsh/zshuery/zshuery.sh
source $DOTFILES/zsh/vcsinfo.sh
# Load stuff from ZSHuery
load_defaults
load_aliases
load_completion $DOTFILES/zsh/zshuery/completion
load_correction
# Set emacs mode
bindkey -e
# Activate completion menu
zstyle ':completion:*' menu select
# Custom prompt stuff
zstyle ':prompt:' completion '%B%F{black}...%f%b'
zstyle ':git-info:' action ' %F{white}(%s)%f'
zstyle ':git-info:' ahead ' %F{red}ahead%f'
zstyle ':git-info:' behind ' %F{red}behind%f%'
zstyle ':git-info:' branch '%F{green}%b%f'
zstyle ':git-info:' dirty ' %F{red}dirty%f'
zstyle ':git-info:' stashed ' %F{yellow}stashed%f'
zstyle ':git-info:' unmerged ' %F{red}unmerged%f'
zstyle ':git-info:' prompt ' %F{black}➜%f %b%s%S%D%U%A%B'
# Set prompt
setopt prompt_subst
prompts '
%B%{%F{yellow}%}%~%{%f%}%b${git_prompt_info}
%{%F{blue}%}›%{%f%} '
# Events
chpwd() {
update_terminal_cwd
}
precmd () {
git-info
}
# PATH
export PATH="/usr/local/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment