Skip to content

Instantly share code, notes, and snippets.

@PaulusTM
Created February 18, 2011 11:22
Show Gist options
  • Save PaulusTM/833557 to your computer and use it in GitHub Desktop.
Save PaulusTM/833557 to your computer and use it in GitHub Desktop.
.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="candy"
# 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=(rails rails3 git github cap gem macports osx ruby vi-mode vagrant)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/Users/dpaulus/.rvm/gems/ree-1.8.7-2010.02/bin:/Users/dpaulus/.rvm/gems/ree-1.8.7-2010.02@global/bin:/Users/dpaulus/.rvm/rubies/ree-1.8.7-2010.02/bin:/Users/dpaulus/.rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/dpaulus/bin
## Aliasses ##
# General
alias ..="cd .."
alias ls="ls -al"
# Rails
alias ss="script/server"
alias sss="script/server -p 3001"
alias db="script/dbconsole"
alias sc="script/console"
alias sg="script/generate"
alias sp="script/plugin"
alias sr="script/runner"
# GIT
alias gits='git status'
alias gitp='git pull --rebase'
alias gitd='git diff'
alias gitx="open /Applications/Gitx.app"
# Digidentity
alias pam="cd ~/Documents/workspace/pam"
alias mol="cd ~/Documents/workspace/machtiging_online"
alias digid="cd ~/Documents/workspace/digid_x"
# Own
alias vps="ssh danielpaulus@94.100.21.14"
# bundle exec helper
bundle_commands=( spec rspec cucumber cap watchr rails rackup )
function run_bundler_cmd () {
if [ -e ./Gemfile ]; then
echo "bundle exec $@"
bundle exec $@
else
echo "$@"
$@
fi
}
for cmd in $bundle_commands
do
alias $cmd="run_bundler_cmd $cmd"
done
# RVM
unsetopt auto_name_dirs
[[ -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