1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-23 20:27:29 +08:00
ohmyzsh/plugins/iwhois/iwhois.plugin.zsh
2018-10-01 12:37:59 +02:00

6 lines
141 B
Bash

function iwhois() {
resolver="whois.geek.nz"
tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
whois -h ${tld}.${resolver} "$@" ;
}