Skip to content

Instantly share code, notes, and snippets.

@mig
Created March 18, 2011 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mig/876062 to your computer and use it in GitHub Desktop.
Save mig/876062 to your computer and use it in GitHub Desktop.
my oh-my-zsh zshrc
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="jreese"
# Set to this to use case-sensitive completion
# export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# 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 textmate)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
export EDITOR=mate
# Aliases & Functions
alias emacs-debug-init='/Applications/Emacs.app/Contents/MacOS/Emacs --debug-init'
alias tl='tail -f log/development.log'
alias pr='touch tmp/restart.txt'
alias oc='open coverage/index.html'
function sc () {
if [ -f ./script/rails ]
then
rails console $argv
else
./script/console $argv
fi
}
function ss () {
if [ -f ./script/rails ]
then
rails server $argv
else
./script/server $argv
fi
}
function sg () {
if [ -f ./script/rails ]
then
rails generate $argv
else
./script/generate $argv
fi
}
function sd () {
if [ -f ./script/rails ]
then
rails destroy $argv
else
./script/destroy $argv
fi
}
# RVM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment