Skip to content

Instantly share code, notes, and snippets.

@erochest
Created Feb 2, 2018
Embed
What would you like to do?
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