Skip to content

Instantly share code, notes, and snippets.

@erochest
Created February 2, 2018 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erochest/a6e981e587ab73310e5b18ee186cb651 to your computer and use it in GitHub Desktop.
Save erochest/a6e981e587ab73310e5b18ee186cb651 to your computer and use it in GitHub Desktop.
Select your IP using fzf and copy it to the clipboard
function myip() {
ifconfig | egrep -o '\d{1,3}(\.\d{1,3}){3}' | uniq | fzf | tee /dev/stderr | pbcopy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment