mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
8 lines
200 B
Bash
8 lines
200 B
Bash
# provide a command to find out your current external ip
|
|
# using opendns resolver
|
|
|
|
function myip() {
|
|
resolver="@resolver1.opendns.com"
|
|
ip="myip.opendns.com"
|
|
dig +short ${ip} ${resolver}
|
|
}
|