Squashed 'oh-my-zsh/' content from commit 550ccca
git-subtree-dir: oh-my-zsh git-subtree-split: 550ccca91cb45fcf26a8f2c3c60da675b995e3f3
This commit is contained in:
8
plugins/iwhois/iwhois.plugin.zsh
Normal file
8
plugins/iwhois/iwhois.plugin.zsh
Normal file
@@ -0,0 +1,8 @@
|
||||
# provide a whois command with a more accurate and up to date list of whois
|
||||
# servers using CNAMES via whois.geek.nz
|
||||
|
||||
function iwhois() {
|
||||
resolver="whois.geek.nz"
|
||||
tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
|
||||
whois -h ${tld}.${resolver} "$@" ;
|
||||
}
|
||||
Reference in New Issue
Block a user