Skip to content

Instantly share code, notes, and snippets.

@enthal
Created January 16, 2012 21:24
Show Gist options
  • Save enthal/1623115 to your computer and use it in GitHub Desktop.
Save enthal/1623115 to your computer and use it in GitHub Desktop.
.bashrc
export PATH=/usr/local/bin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
# export JAVA_HOME=$(/usr/libexec/java_home)
# export LD_LIBRARY_PATH=/usr/local/lib/
alias ll='ls -al'
alias m='mate'
alias mw='mate -w'
alias .p='. ~/.bashrc'
alias ep='mw ~/.bashrc; .p'
alias gs='git status -s'
alias gl='git log --oneline'
alias gd='git diff'
PS1='____________________________\n@@@ \h:\W \u \$ '
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
PS1="________________________________________________________\n\u@\h \w\[\e[0;33;49m\]\$(parse_git_branch)\[\e[0;0m\]\n\$ "
GITCOMPL=/usr/local/etc/bash_completion.d/git-completion.bash &&\
[ -f $GITCOMPL ] && source $GITCOMPL
export ARCHFLAGS="-arch x86_64"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
cd ~; cd - # activate current rvm dir, if any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment