conf2/zsh/.oh-my-zsh/plugins/iwhois/iwhois.plugin.zsh

6 lines
141 B
Bash
Raw Permalink Normal View History

2019-01-12 15:47:23 +00:00
function iwhois() {
resolver="whois.geek.nz"
tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
whois -h ${tld}.${resolver} "$@" ;
}