Created
November 17, 2010 22:20
-
-
Save rufo/704228 to your computer and use it in GitHub Desktop.
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
export PATH="/opt/android-sdk/tools:/opt/android-sdk/platforms/android-1.5/tools:/usr/local/libexec/git-core:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:$PATH" | |
export MANPATH="/usr/local/man:/usr/local/mysql/man:$MANPATH" | |
export EDITOR="mate -w" | |
export CLICOLOR=true | |
export MENU_COMPLETE=false | |
export CDPATH=.:~/Dropbox/Projects:~/Projects:~/Dropbox/sandbox | |
export ARCHFLAGS="-arch x86_64" | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
HISTFILE=~/.history | |
SHARE_HISTORY=1 | |
HIST_EXPIRE_DUPS_FIRST=1 | |
REPORTTIME=10 | |
LISTMAX=0 | |
setopt hist_ignore_space | |
autoload -Uz vcs_info | |
precmd() { | |
psvar=() | |
vcs_info | |
[[ -n $vcs_info_msg_0_ ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
PS1="%F{blue}rufo-mbp%f%(1v.%F{red}%1v%f.-)%# " | |
RPS1="%B%F{green}%~%f%b @ %F{yellow}%D{%H:%M}%f" | |
autoload -U compinit | |
compinit | |
setopt correctall | |
alias m="mate" | |
alias m.="mate ." | |
alias nt="new-terminal-tab" | |
alias sc="script/console" | |
alias sg="script/generate" | |
alias trt="touch tmp/restart.txt" | |
alias gcd='cd $(git rev-parse --show-cdup).' | |
alias gs="git status" | |
alias grh="git reset HEAD" | |
alias gp="git push" | |
alias gpl="git pull" | |
alias gd="git diff" | |
alias gdc="git diff --cached" | |
alias ga="git add" | |
alias gcam="git commit -a -m" | |
alias gcm="git commit -m" | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" | |
alias reload="source ~/.zshrc" | |
alias edit="mate ~/.zshrc" | |
alias cd..="cd .." | |
alias cdp="cap deploy" | |
alias cdpm="cap deploy:migrations" | |
alias o="open" | |
alias "git-undo-commit"="git reset --soft HEAD^" | |
alias olm='mate db/migrate/`ls -t1 db/migrate | head -1`' | |
alias flushdns='dscacheutil -flushcache' | |
git(){ if [ $1 = git ]; then shift; fi; command git "$@"; } | |
_rake_does_task_list_need_generating () { | |
if [ ! -f .rake_tasks ]; then return 0; | |
else | |
accurate=$(stat -f%m .rake_tasks) | |
changed=$(stat -f%m Rakefile) | |
return $(expr $accurate '>=' $changed) | |
fi | |
} | |
_rake () { | |
if [ -f Rakefile ]; then | |
if _rake_does_task_list_need_generating; then | |
echo "\nGenerating .rake_tasks..." > /dev/stderr | |
rake --silent --tasks | cut -d " " -f 2 > .rake_tasks | |
fi | |
compadd `cat .rake_tasks` | |
fi | |
} | |
compdef _rake rake | |
# rvm-install added line: | |
if [[ -s /Users/rufo/.rvm/scripts/rvm ]] ; then source /Users/rufo/.rvm/scripts/rvm ; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment