Last active
August 19, 2021 15:14
-
-
Save diegoulloao/018b1941f33e183e923b8bdbcbde82f7 to your computer and use it in GitHub Desktop.
Agrega alias para obtener IP Pública desde macOS Terminal
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
cd $HOME && echo "alias 'ip'='IP=\`dig +short myip.opendns.com @resolver1.opendns.com\` && echo \$IP && echo \$IP | pbcopy'" >> .bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PASOS:
USO:
Usar el comando "ip" en una Terminal.
* Además queda copiada en el portapapeles.