Keeping your own bash profile will save you time and headache.
Last active
September 4, 2015 18:00
-
-
Save pixelbacon/959892f246cd292d07b7 to your computer and use it in GitHub Desktop.
~/.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
# 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment