Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created August 20, 2012 18:55
Show Gist options
  • Save ifnull/3406687 to your computer and use it in GitHub Desktop.
Save ifnull/3406687 to your computer and use it in GitHub Desktop.
.bash_profile
export PATH=~/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH
export EDITOR='subl -w'
export CLICOLOR=1
export TERM=xterm-color
# ssh-agent
# ensure the agent plist is running as well
# see http://tim.vanwerkhoven.org/post/2011/11/17/OSX-launchd-and-launchctl-issues
# for more info : launchctl list org.openbsd.ssh-agent
SSH_AGENT_KEYS=`ssh-add -l`
if [ "$SSH_AGENT_KEYS" = "The agent has no identities." ]; then
`ssh-add &>/dev/null`
fi
export PS1='[\[\033[0;35m\]$(hostname) \[\033[0;37m\]\w\[\033[0m\]$(__git_ps1 " (\[\033[0;33m\]%s\[\033[0m\])")]\n$(date +%H:%M) \$ '
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
#virtualenv and mkvirtualenv
export WORKON_HOME=$HOME/.virtualenvs
source $WORKON_HOME/default/bin/activate
source $HOME/.virtualenvs/default/bin/virtualenvwrapper.sh
# MacPorts Installer addition on 2012-07-13_at_11:01:17: 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment