Created
April 2, 2012 07:30
-
-
Save theDisco/2281408 to your computer and use it in GitHub Desktop.
My zshrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git svn phing) | |
source $ZSH/oh-my-zsh.sh | |
# History | |
HISTFILE=~/.zshistory | |
HISTSIZE=2000 | |
SAVEHIST=2000 | |
setopt appendhistory | |
setopt sharehistory | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_space | |
setopt autocd | |
# Completion | |
#zstyle ':completion:*:descriptions' format '%U%B%d%b%u' | |
#zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' | |
#unsetopt correctall | |
# Key Bindings | |
bindkey '^[OH' beginning-of-line | |
bindkey '^[OF' end-of-line | |
bindkey '^[[3~' delete-char | |
alias ..="cd .." | |
alias df="df -Ph" | |
#alias du="du -h" | |
alias ls="ls --color=auto" | |
alias ll="ls --color=auto -lh" | |
alias la="ls --color=auto -lha" | |
alias less="less -R" | |
alias grep="grep --color=auto" | |
alias exit="clear && exit" | |
alias su="sudo su" | |
alias gvim="gvim -p" | |
alias vim="vim -p" | |
alias diff=colordiff | |
alias diffstat="diffstat -f2 -r2" | |
export EDITOR=vim | |
export JAVA_HOME=/usr/lib/jvm/java-6-sun | |
PROMPT='%{$fg_no_bold[red]%}%n%{$fg_no_bold[yellow]%}@%{$fg_no_bold[green]%}%m %{$fg_no_bold[cyan]%}%d$(git_prompt_info)%{$reset_color%} ' | |
RPROMPT='%{$fg_no_bold[yellow]%}[%*]%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[cyan]%}%{$fg[cyan]%})%{$reset_color%} %{$fg[yellow]%}*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[cyan]%})%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment