Skip to content

Instantly share code, notes, and snippets.

@richbs
Created July 1, 2015 08:54
Show Gist options
  • Save richbs/b502311ce07fb2ed0c74 to your computer and use it in GitHub Desktop.
Save richbs/b502311ce07fb2ed0c74 to your computer and use it in GitHub Desktop.
Work Mac .bash_profile
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=erasedups:ignorespace
HISTTIMEFORMAT="%H:%M "
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
PATH=.:/usr/local/bin:/usr/bin:/usr/local/sbin:$HOME/.composer/vendor/bin:$PATH
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
PS1='\[\e[1m\]\h:\w \u\$\[\e[m\] '
PS1='\A \h:\[\e[1;37m\]\W\[\e[m\]\[\e[1;33m\]\$\[\e[m\] '
alias ll="ls -lrt"
alias h="history"
alias g="grep"
alias java="-Dapple.awt.UIElement=true"
### Added by the Heroku Toolbelt
PATH="/usr/local/heroku/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
NPM_PACKAGES="${HOME}/.npm-packages"
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
PATH="/usr/local/mysql/bin:$PATH"
PATH="/usr/local/mongodb/bin:$PATH"
PATH="$NPM_PACKAGES/bin:$PATH"
# Unset manpath so we can inherit from /etc/manpath via the `manpath`
# command
unset MANPATH # delete if you already modified MANPATH elsewhere in your config
MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
# Don't require sudo for gem install
GEM_HOME="$HOME/.gem"
PATH="$GEM_HOME/bin:$PATH"
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
case $- in
*i*) source ~/.bashrc
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment