feat: some stuff
This commit is contained in:
8
configs/zsh/functions/myip.zsh
Normal file
8
configs/zsh/functions/myip.zsh
Normal 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
|
||||
}
|
Reference in New Issue
Block a user