Skip to content

Instantly share code, notes, and snippets.

@jsz0
Created October 4, 2015 01:44
Show Gist options
  • Save jsz0/dcfc73536aff7c8456cf to your computer and use it in GitHub Desktop.
Save jsz0/dcfc73536aff7c8456cf to your computer and use it in GitHub Desktop.
OSX .bash_profile aliases
alias showdisks='diskutil list'
alias showdiskio="sudo iotop -P -C 5 10"
alias showlogs='multitail -i /var/log/system.log -i /var/log/org.openzfsonosx.zed.log'
alias newfinder='open ./'
alias showip="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
alias showpubip="dig +short myip.opendns.com @resolver1.opendns.com"
alias showcpu="sysctl -n machdep.cpu.brand_string"
alias flushspotlight="sudo mdutil -avE"
alias flushdns="sudo killall -HUP mDNSResponder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment