Skip to content

Instantly share code, notes, and snippets.

@delacruz-dev
Created March 6, 2020 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save delacruz-dev/bd1c82aae1bca5c5e552771016319349 to your computer and use it in GitHub Desktop.
Save delacruz-dev/bd1c82aae1bca5c5e552771016319349 to your computer and use it in GitHub Desktop.
Alias for getting my IP on bash/zsh
alias myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment