Skip to content

Instantly share code, notes, and snippets.

@sweetmandm
Last active March 27, 2017 13:28

Revisions

  1. sweetmandm revised this gist Mar 27, 2017. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    alias ..="cd .."
    alias ...="cd ..; cd .."
    alias la="ls -a"
    alias cdh="cd ~"

    # Get readable list of network IPs
    alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
  2. sweetmandm revised this gist Dec 12, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    alias ..="cd .."
    alias ...="cd ..; cd .."
    alias la="ls -a"
    alias cdh="cd ~"

    # Get readable list of network IPs
    alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
  3. sweetmandm created this gist Sep 24, 2012.
    9 changes: 9 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #aliases
    alias ..="cd .."
    alias ...="cd ..; cd .."
    alias la="ls -a"

    # Get readable list of network IPs
    alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
    alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
    alias flush="dscacheutil -flushcache" # Flush DNS cache