Skip to content

Instantly share code, notes, and snippets.

@sholloway
Created July 15, 2012 21:21
Show Gist options
  • Save sholloway/3118677 to your computer and use it in GitHub Desktop.
Save sholloway/3118677 to your computer and use it in GitHub Desktop.
Part of my bash profile
#call .bashrc if I'm logging in remotely.
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
#Enable RVM to work as a system function
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
#get ls the way I like it
alias ls='ls -aGF'
#always load rubygems
RUBYOPT="rubygems"
export RUBYOPT
#create an alias for lldb
alias lldb="/Developer/usr/bin/lldb"
#enable OpenGL Debugging
GL_ENABLE_DEBUG_ATTACH=YES
#Create a function for fast OpenGL Error debugging
#The function takes in a hex number
function gl_error()
{
grep "$@" /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/gl3.h;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment