Created
February 22, 2012 19:53
-
-
Save gaarf/1886879 to your computer and use it in GitHub Desktop.
my .profile
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 VISUAL=nano | |
export EDITOR=nano | |
export CLICOLOR=1 | |
export TERM=xterm-color | |
export LSCOLORS=gxgxcxdxbxegedabagacad # cyan directories | |
export NODE_ENV='development' | |
export RAILS_ENV=$NODE_ENV # haha | |
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi | |
export PGDATA='/usr/local/var/postgres/' | |
alias ll='ls -lap' | |
alias mongod_run='mongod run --config /usr/local/etc/mongod.conf' | |
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home | |
export PATH=$JAVA_HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH | |
complete -o default -W "\$(git branch 2>/dev/null | cut -c 3-)" git | |
function grf_git_branch() { | |
if git rev-parse --git-dir >/dev/null 2>&1; then | |
echo -n "($(git name-rev --name-only head))" | |
fi | |
} | |
export PS1="\[\e[01;33m\]\u\[\e[0;33m\]@\h\[\e[0m\]:\[\e[01;36m\]\w \[\e[0;37m\]\[\e[44m\]\$(grf_git_branch)\[\e[0;33m\]\$\[\e[0m\] " | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment