Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4562030b62
Fetching contributors…

Cannot retrieve contributors at this time

116 lines (93 sloc) 3.743 kb
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Set to this to use case-sensitive completion
CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want disable red dots displayed while waiting for completion
DISABLE_COMPLETION_WAITING_DOTS="true"
# Faster autocompletion
setopt NO_cdable_vars
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
zstyle ':completion:*' hosts off
setopt menu_complete
# Disable autocorrect
unsetopt correct_all
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
# Faster git completion
__git_files () {
_wanted files expl 'local files' _files
}
source $ZSH/oh-my-zsh.sh
local user_host='%{$fg[cyan]%}%n@%m%{$fg[white]%}'
local current_dir='%{$fg[yellow]%}%c%{$fg[white]%}'
local git_prompt_format='%{$fg[magenta]%}$(git_prompt_info)%{$fg[white]%}'
local time_format="%(?.%{$fg[green]%}.%{$fg[red]%})%*%{$fg[white]%}"
local promt_char="%(?.%{$fg[cyan]%}.%{$fg[red]%})λ%{$fg[white]%}"
# Prompt
PROMPT="%{%f%k%b%}
%{$fg[white]%}${time_format}%{$fg[white]%} ${user_host}%{$fg[white]%} ${current_dir}%{$fg[white]%}${git_prompt_format} %{$fg[white]%}%E%{$reset_color%}%{$reset_color%}${promt_char} %{%f%k%b%}"
RPROMPT=""
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[white]%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%} o" # Ⓓ
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} o" # ⓣ
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} o" # Ⓞ
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[blue]%} ♐" # ⓐ ⑃
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%} ✚" # ⓐ ⑃
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[white]%} ⚡" # ⓜ ⑁
ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖" # ⓧ ⑂
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%} ➜" # ⓡ ⑄
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%} ♒" # ⓤ ⑊
# Aliases
alias ".."="cd .."
alias "..."="cd .. && cd .."
alias "l"="ls -a"
alias "h"="cd ~"
alias "c"="clear"
alias "gs"="git status"
alias "gc"="git commit"
alias "ga"="git add"
alias "gd"="git diff"
alias "gdc"="git diff --cached"
alias "pull"="git pull"
alias "push"="git push"
alias "m"="gvim"
alias "top"="htop"
alias "rr"="source $HOME/.zshrc"
alias "ss"="screen -D -R"
alias "tc"="truecrypt --auto-mount=favorites"
alias "scrape"="wget -r -p -e robots=off --no-check-certificate -U mozilla"
alias "server"="python -m SimpleHTTPServer"
alias "byport"="netstat -tulpn | grep "
alias "image-grayscale"="mkdir bw && for i in *.png; do convert $i -colorspace Gray bw/$i; done"
alias "image-resize"="mkdir sc && for i in *.png; do convert $i -resize 344 sc/$i; done"
alias "image-negate"="mkdir sc && for i in *.png; do echo "convert" $i -negate sc/$i; done"
# Color
for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
eval $COLOR='$fg_no_bold[${(L)COLOR}]'
eval BOLD_$COLOR='$fg_bold[${(L)COLOR}]'
done
eval RESET='$reset_color'
# Path
export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
export PATH=$PATH:/sbin:/bin
# Node
export PATH=$PATH:$HOME/bin/node/bin
# Ruby
export PATH=$PATH:/var/lib/gems/1.8/bin
# Local vars
source $HOME/.shell_local
Jump to Line
Something went wrong with that request. Please try again.