Skip to content

Instantly share code, notes, and snippets.

@zynick
Created July 12, 2014 03:56
Show Gist options
  • Save zynick/c191d702c2205a8054a7 to your computer and use it in GitHub Desktop.
Save zynick/c191d702c2205a8054a7 to your computer and use it in GitHub Desktop.
My Personal Bash Profile
# Colors
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1='\[\e[0;31m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
# Configure PATH
# - These are line by line so that you can kill one without affecting the others.
# - Lowest priority first, highest priority last.
export PATH=$PATH
export PATH=$HOME/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
# shortcut command
alias tunnel_server="ssh -L1234:localhost:1234 -L5678:localhost:5678 server"
alias start_server="sudo python -m SimpleHTTPServer 80"
alias hist="history | grep"
# https://news.ycombinator.com/item?id=7981996
shopt -s histappend
export HISTSIZE=100000
export HISTFILESIZE=100000
export HISTCONTROL=ignoredups:erasedups
export PROMPT_COMMAND="history -a;history -c;history -r;$PROMPT_COMMAND"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment