Skip to content

Instantly share code, notes, and snippets.

@mcenirm
Last active August 29, 2015 14:15
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 mcenirm/086c285b72e8ad37dddf to your computer and use it in GitHub Desktop.
Save mcenirm/086c285b72e8ad37dddf to your computer and use it in GitHub Desktop.
.bash_profile on Mac OS X for homebrew, python
# Github API token, so that homebrew doesn't hit such a low rate limit
if [ -r ${HOME}/.github/api_token ] ; then
export HOMEBREW_GITHUB_API_TOKEN=$(< ${HOME}/.github/api_token)
fi
# Per-user python modules-installed executables
export PATH=${HOME}/Library/Python/$(python -c 'from sys import version_info as v; print(".".join(map(str,v[0:2])))')/bin${PATH+:${PATH}}
# Need a readlink that works like on linux
export PATH=/usr/local/opt/coreutils/libexec/gnubin${PATH+:${PATH}}
export MANPATH=/usr/local/opt/coreutils/libexec/gnuman:${MANPATH}
export GREP_OPTIONS='--color=auto'
test -f ~/.bashrc && source ~/.bashrc
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment