diff --git a/bin/myip b/bin/myip new file mode 100755 index 0000000..6a8fcc7 --- /dev/null +++ b/bin/myip @@ -0,0 +1,8 @@ +#!/bin/bash + +if [[ "$1" == "-d" ]]; then + curl -s ipinfo.io | jq +else + curl ipinfo.io/ip && echo +fi +