Created
February 2, 2018 18:04
-
-
Save erochest/a6e981e587ab73310e5b18ee186cb651 to your computer and use it in GitHub Desktop.
Select your IP using fzf and copy it to the clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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