Skip to content

Instantly share code, notes, and snippets.

@masnun
Created June 24, 2012 18:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save masnun/2984301 to your computer and use it in GitHub Desktop.
Save masnun/2984301 to your computer and use it in GitHub Desktop.
My Bash Profile
############# Aliases ##############
#AMP
alias php.ini='subl /usr/local/etc/php/5.4/php.ini'
alias httpd.conf='subl /etc/apache2/httpd.conf'
alias vhosts='subl /private/etc/apache2/extra/httpd-vhosts.conf'
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
export mysqlctl=/Library/StartupItems/MySQLCOM/MySQLCOM
#Git Tower
alias gt=gittower
############# PATH ##############
#Homebrew PHP
export PATH=/usr/local/Cellar/php54/5.4.8/bin:$PATH
#Homebrew Python
export PATH=/usr/local/share/python:$PATH
#Homebrew Ruby
export PATH=/usr/local/Cellar/ruby/1.9.3-p286/bin:$PATH
#Homebrew (Main homebrew path should be after any other homebrew paths)
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
#Android SDk
export PATH=~/android-sdk/platform-tools:$PATH
#Postgres App
export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
# My local Bin
export PATH=~/.bin:$PATH
#PYTHONPATH
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
############# Misc section ##############
#Editor Variable
export EDITOR='subl -w'
#Bash completion -- "brew install bash-completion"
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
#XDebug Session
export XDEBUG_CONFIG="idekey=PHPSTORM"
#LANG Fixes
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
## virtualenvwrapper configs
export WORKON_HOME=$HOME/.virtualenvs
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
#virtualenv shell script
source /usr/local/share/python/virtualenvwrapper.sh
# Git and SVN Bash Prompt
. ~/.git_svn_bash_prompt.sh
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment