Skip to content

Instantly share code, notes, and snippets.

@JoelQ
Created June 6, 2012 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoelQ/2883492 to your computer and use it in GitHub Desktop.
Save JoelQ/2883492 to your computer and use it in GitHub Desktop.
My bash_profile
# Show branch in status line
PS1='[\w]$ '
#PS1="\u$ \w: "
alias ll="ls -lahG"
alias subl='open -a "Sublime Text 2"'
# Git bash completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
export PATH="/Applications/MAMP/Library/bin:$PATH"
export PATH="/Applications/MAMP/bin/php/php5.2.17/bin/:$PATH"
export PATH="/Applications/MAMP/bin/php/php5.3.6/bin/:$PATH"
export PATH="./cake/console/:$PATH"
export RUBYOPT="-ropenssl"
export GREP_OPTIONS="--exclude=*\.svn*"
##
# Your previous /Users/IT02/.bash_profile file was backed up as /Users/IT02/.bash_profile.macports-saved_2011-08-16_at_10:40:32
##
# MacPorts Installer addition on 2011-08-16_at_10:40:32: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/IT02/.bash_profile file was backed up as /Users/IT02/.bash_profile.macports-saved_2011-08-16_at_10:43:57
##
# MacPorts Installer addition on 2011-08-16_at_10:43:57: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# Git tab completion
# source ~/git-completion.bash
# # Show branch in status line
# PS1='[\W$(__git_ps1 " (%s)")]\$ '
# export PROMPT_COMMAND='echo -ne "\033]0;{PWD/#$HOME/~}\007"'
#
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\]"
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="$BLUE\w\n[\W $GREEN\$(parse_git_branch)$BLUE] $GREEN\$ $WHITE"
PS2='> '
PS4='+ '
}
proml
##
# Your previous /Users/IT03/.bash_profile file was backed up as /Users/IT03/.bash_profile.macports-saved_2011-10-20_at_10:32:39
##
# MacPorts Installer addition on 2011-10-20_at_10:32:39: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
# Annotate gem overiding defaults with my prefered options
alias annotate="annotate -p before -e tests"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment