From e2a3c0f2eb502fd74fb5ad5eaaeb02c069b9a9ec Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 4 Mar 2015 13:04:32 +0200 Subject: [PATCH] rc: improve geoip to also check IPv6 --- rc/bashrc | 5 +++-- rc/zshrc | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 1de3f921..cf915117 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -608,9 +608,10 @@ fi ##### Functions ZGC5QQ ##### -# GEOIP lookup, copied from the ultimate bashrc http://goo.gl/qGK5j +# GEOIP lookup, improved from the ultimate bashrc http://goo.gl/qGK5j function geoip() { -geoiplookup $1 + geoiplookup $1 + geoiplookup6 $1 } # Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j diff --git a/rc/zshrc b/rc/zshrc index a654f764..a650703b 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -581,9 +581,10 @@ fi ##### Functions ZGC5QQ ##### -# GEOIP lookup, copied from the ultimate bashrc http://goo.gl/qGK5j +# GEOIP lookup, improved from the ultimate bashrc http://goo.gl/qGK5j function geoip() { -geoiplookup $1 + geoiplookup $1 + geoiplookup6 $1 } # Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j