Created
July 12, 2014 03:56
My Personal 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
# 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