Created
January 13, 2010 17:08
-
-
Save dreamr/276370 to your computer and use it in GitHub Desktop.
This file contains hidden or 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="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/opt/local/bin:/opt/local/sbin:$PATH" | |
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ' | |
export EDITOR='mate -w' | |
export AUTOFEATURE=false | |
export RSPEC=true | |
export CUCUMBER_COLORS=passed=white | |
export CUCUMBER_COLORS=passed=white,bold:passed_param=white,bold,underline | |
export CUCUMBER_COLORS=pending_param=magenta:failed_param=magenta:passed_param=magenta:skipped_param=magenta | |
alias gco='git checkout' | |
alias gca='git commit -a' | |
alias gpl='git pull origin' | |
alias gph='git push origin' | |
alias updatedb='/usr/libexec/locate.updatedb' | |
alias railsquiz='cd ~/development/railsquiz/' | |
alias starter='cd ~/development/starter_app/' | |
alias destroy_gems='GEMS=`sudo gem list --no-versions` ; for x in $GEMS ; do sudo gem uninstall $x -i ~/.gem/ruby/1.8/; done ; GEMS=`gem list --no-versions` ; for x in $GEMS ; do gem uninstall $x -i ~/.gem/ruby/1.8/; done' | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local WHITE="\[\033[1;37m\]" | |
local LIGHT_GRAY="\[\033[0;37m\]" | |
local RESET="\[\033[0;37;00m\]" | |
case $TERM in | |
xterm*) | |
TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
;; | |
*) | |
TITLEBAR="" | |
;; | |
esac | |
PS1="${TITLEBAR}\ | |
$RED\w$GREEN \$(parse_git_branch)\ | |
$WHITE: $RESET" | |
PS2='> ' | |
PS4='+ ' | |
} | |
proml | |
# MacPorts Installer addition on 2009-05-27_at_10:23:16: adding an appropriate MANPATH variable for use with MacPorts. | |
export MANPATH=/opt/local/share/man:$MANPATH | |
# Finished adapting your MANPATH environment variable for use with MacPorts. | |
test -r @PREFIX@/bin/init.sh && . @PREFIX@/bin/init.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment