aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hyperterm/hyperterm.sha5122
-rw-r--r--hyperterm/tools/network.sh7
2 files changed, 5 insertions, 4 deletions
diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512
index 4ea8030..d0164e2 100644
--- a/hyperterm/hyperterm.sha512
+++ b/hyperterm/hyperterm.sha512
@@ -10,7 +10,7 @@ f70697086f001f690f9dc687d97a9a000f0a96ee6cd0b6ac33c407ffb467064d2ce2780852c5d980
1d26185a78a0a779af61cdf816f0644bbd328588800ead4dcf5475b0750704fd01755edcf12048791d23cb94afae8512ef587135ff049b84c5a5c0eb0d2209a6 ./tools/compress.sh
fab9d339a99c7d2e1809d1c44f533523c6bfcdcc8d63c62b335ce7d4c666c8bdd7ac319316bf71f043163a3a0184e25ecfe1ee32724627424d042a05fa80ce77 ./tools/vconverter.sh
579852abd8378d754fcaccb903c1fefcd4020a578ba63fb3687a08027a937fbbd18e8a1ac22b448edc14445e088134e1e909ae2f3bfea8702df8abf56000daa0 ./tools/ruby.sh
-1273dbe1fcfab9737d377e8666de47aef4a6d564a9a7c35816d6a91c345238bb19335572c89ff024d6d68213de3b4d9da665582c123fc42e51c37ad46aace3d8 ./tools/network.sh
+fe9e7254c55153e9f54e7da77d4dff8bd784c5dad895d36f9b059e57836c53e3c9f036c2b5a552bf02f4dbe0a69347004eeea442d24a781c7d05676802a91135 ./tools/network.sh
7447d3e167ab207d3ef4218e201a06bf5a3fc23281639f16f7f405f1d66b73923845d450fdb0a94672757866a9da0324f728564a1b61b2ed1678fe576eb565cf ./core/autocomplete.sh
065cfa39f1b4312ed275ad1039827a24f703176c653a8d27303d145f9d389a60ec5b3a9eb167e060cc6fd093b9c03cfb1a8b70254d444fbc6e62e2297d88b310 ./core/status.sh
a8729da31e95e00605283788aaedc25d61243d722ab1b62983a554f9255d2469144695205f43fe2d6fd2fdd976e6045db6fa82d76746bc6a0be4fab581277901 ./core/git.sh
diff --git a/hyperterm/tools/network.sh b/hyperterm/tools/network.sh
index 6a2325f..132b090 100644
--- a/hyperterm/tools/network.sh
+++ b/hyperterm/tools/network.sh
@@ -1,8 +1,9 @@
#!/bin/bash
function __network() {
unset MY_IP
- : "${MY_IP:=$(ip route show table local | awk -F "local" '{print $2}' | uniq)}"
-
unset MY_ISP
- : "${MY_ISP:=$(host whoami.akamai.net. ns1-1.akamaitech.net. | grep "whoami.akamai.net has" | awk '{print $4}')}"
+ local ipv4
+ ipv4=$(curl -fsSL https://v4.myip.vc/flat)
+ : "${MY_IP:=$(ip route show table local | awk -F "local" '{print $2}' | uniq)}"
+ : "${MY_ISP:=$(printf '%s\e[1;36m%s\e[m\n' 'IPv4: ' "$ipv4")}"
}