Last active
August 29, 2015 14:08
-
-
Save yitznewton/55c59cdeeef12944ace1 to your computer and use it in GitHub Desktop.
Bash profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function git_checkout | |
| { | |
| REF=$(git symbolic-ref HEAD 2> /dev/null) | |
| HASH=$(git rev-parse --short HEAD 2> /dev/null) || return | |
| if [ -n "$REF" ] ; then echo "("${REF#refs/heads/}") " ; | |
| elif [ -n "$HASH" ] ; then echo "("${HASH}") " ; | |
| fi | |
| } | |
| alias lsa='ls -lah' | |
| GREEN="\[\033[0;32m\]" | |
| WHITE="\[\033[00m\]" | |
| BLUE="\[\033[01;34m\]" | |
| PS1="$BLUE\t \w $GREEN\$(git_checkout)$BLUE\$$WHITE " | |
| export CLICOLOR=1 | |
| export HISTCONTROL=ignoredups:erasedups | |
| export HISTSIZE=100000 | |
| export HISTFILESIZE=100000 | |
| shopt -s histappend | |
| # make history available across sessions | |
| export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" | |
| PERL_MB_OPT="--install_base \"/Users/yschaffer/perl5\""; export PERL_MB_OPT; | |
| PERL_MM_OPT="INSTALL_BASE=/Users/yschaffer/perl5"; export PERL_MM_OPT; | |
| export PATH="$HOME/bin:/usr/local/bin:$PATH" | |
| export PATH="$HOME/.rbenv/bin:/usr/local/heroku/bin:$PATH" | |
| eval "$(rbenv init -)" | |
| if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
| . $(brew --prefix)/etc/bash_completion | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment