Skip to content

Instantly share code, notes, and snippets.

@pixelbacon
Last active September 4, 2015 18:00
Show Gist options
  • Save pixelbacon/959892f246cd292d07b7 to your computer and use it in GitHub Desktop.
Save pixelbacon/959892f246cd292d07b7 to your computer and use it in GitHub Desktop.
~/.bash_profile
# Alias Vagrant
alias v='vagrant'
# Quick outward IP
alias myip='curl ip.appspot.com'
# DNS Flush
alias flushDNS='sudo discoveryutil udnsflushcaches' # 10.10
# alias flushDNS='dscacheutil -flushcache; sudo killall -HUP mDNSResponder' # 10.9
# alias flushDNS='sudo killall -HUP mDNSResponder' # 10.7 – 10.8
# alias flushDNS='dscacheutil -flushcache' # 10.5 - 10.6
# Quick Find
alias qfind="find . -name "
# Home
alias ~="cd ~"
mcd () { mkdir -p "$1" && cd "$1"; } # mcd: Makes new Dir and jumps inside
trash () { command mv "$@" ~/.Trash ; } # trash: Moves a file to the MacOS trash
# Alias Divshot-cli push and promote to Production ### DANGEROUS
alias dpush="divshot push; divshot promote development staging; divshot promote staging production;"
# Alias Jekyll Build & Watch with Divshot Server
alias jdiv="jekyll build --watch & divshot server"

.bash_profile

Keeping your own bash profile will save you time and headache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment