added myip-plugin

This commit is contained in:
David Mändlen 2015-03-03 15:09:17 +01:00
commit 06456cfb92
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# 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}
}