Skip to content

Instantly share code, notes, and snippets.

@drewdeponte
Created January 16, 2012 17:37
Show Gist options
  • Save drewdeponte/1621957 to your computer and use it in GitHub Desktop.
Save drewdeponte/1621957 to your computer and use it in GitHub Desktop.
my zshrc
# DESCRIPTION:
# A simple zsh configuration that gives you 90% of the useful features that I use everyday.
#
# AUTHOR:
# Geoffrey Grosenbach http://peepcode.com
export PATH="/Users/adeponte/bin:$PATH"
# RVM
if [[ -s ~/.rvm/scripts/rvm ]] ; then source ~/.rvm/scripts/rvm ; fi
# Colors
autoload -U colors
colors
setopt prompt_subst
# Prompt
local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"
PROMPT='
%~
${smiley} %{$reset_color%}'
RPROMPT='%{$fg[white]%} $(~/.rvm/bin/rvm-prompt)$(~/bin/git-cwd-info.rb)%{$reset_color%}'
# Show completion on first TAB
setopt menucomplete
# Load completions for Ruby, Git, etc.
autoload compinit
compinit
# Git aliases
alias g="git"
# Bundle aliases
alias be='bundle exec'
alias bec='be cucumber'
alias ber='be rspec --color --drb'
alias beg='be guard'
# ImageMagick paths
#export MAGICK_HOME="/opt/local/ImageMagick-6.6.9"
#export PATH="/usr/local/bin:$MAGICK_HOME/bin:/usr/local/mysql/bin:$HOME/bin:$PATH"
#export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib:/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
export NODE_PATH=/usr/local/lib/node
export CC=gcc-4.2
# My default editor settings
export EDITOR="$HOME/bin/subl -w"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment