Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rchrd2
Created June 16, 2017 02:24
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 rchrd2/723ad5f161e4d6b413cf85247568c509 to your computer and use it in GitHub Desktop.
Save rchrd2/723ad5f161e4d6b413cf85247568c509 to your computer and use it in GitHub Desktop.
PS1="$ "
alias pserve="python -m SimpleHTTPServer"
# show git branch in prompt
export PS1="(\$(git branch 2>/dev/null | grep '^*' | colrm 1 2))\$ "
source /usr/local/etc/bash_completion.d/git-completion.bash
# http://unix.stackexchange.com/a/48113
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
export PATH="/usr/local/sbin:$PATH"
export PATH="/Users/richard/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment