Skip to content

Instantly share code, notes, and snippets.

@amcclosky
Created February 27, 2016 19:46
Show Gist options
  • Save amcclosky/0b8b60ab0c3aa80e3e87 to your computer and use it in GitHub Desktop.
Save amcclosky/0b8b60ab0c3aa80e3e87 to your computer and use it in GitHub Desktop.
A .bash_profile
source ~/bin/fancy_prompt.sh
alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
alias show-hidden='defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder'
alias hide-hidden='defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder'
alias flushdns='sudo discoveryutil udnsflushcaches'
alias serve='python -m SimpleHTTPServer 8080'
alias ls='ls -lah'
export HISTFILESIZE=1000000
export HISTSIZE=1000000
export HISTCONTROL=ignoreboth
export HISTIGNORE='ls:bg:fg:history'
export HISTTIMEFORMAT='%F %T '
export PROMPT_COMMAND='history -a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment