feat: some stuff

This commit is contained in:
2022-01-14 16:14:57 +01:00
parent dd42271f78
commit 47c9f5702b
7 changed files with 1836 additions and 18 deletions

View File

@ -0,0 +1,8 @@
function myip(){
RES="$(curl -s ifconfig.co/json)"
echo $RES | jq -r ' .ip '
if [ "$1" = "-a" ]; then
echo "$(echo $RES | jq -r '.country') | $(echo $RES | jq -r '.city')"
echo "$(echo $RES | jq -r '.time_zone')"
fi
}