Only a minor alteration...
I would change "Whois:/whois $1" to include a further $1 to make it a full WHOIS
Mainly cos I like it that way...
Whois:/whois $1 $1
Otherwise, a tidy little script there