mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-01 23:34:03 +01:00
rc: improve geoip to also check IPv6
This commit is contained in:
parent
8a48996008
commit
e2a3c0f2eb
@ -608,9 +608,10 @@ fi
|
|||||||
|
|
||||||
##### Functions ZGC5QQ #####
|
##### 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() {
|
function geoip() {
|
||||||
geoiplookup $1
|
geoiplookup $1
|
||||||
|
geoiplookup6 $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j
|
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j
|
||||||
|
3
rc/zshrc
3
rc/zshrc
@ -581,9 +581,10 @@ fi
|
|||||||
|
|
||||||
##### Functions ZGC5QQ #####
|
##### 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() {
|
function geoip() {
|
||||||
geoiplookup $1
|
geoiplookup $1
|
||||||
|
geoiplookup6 $1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j
|
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j
|
||||||
|
Loading…
Reference in New Issue
Block a user