diff --git a/load/01-basic b/load/01-basic index ec13ffd..348d79e 100644 --- a/load/01-basic +++ b/load/01-basic @@ -55,3 +55,14 @@ gedit() { ${GEDITOR:-xed} $@; } unlocku () ( faillock --user $1 --reset ) rsynchg() { rsync --help | grep "\-$1"; } + + +gip () { + if which jqx &> /dev/null; then + curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data' + return 0 + else + echo install jq to use this function + return 1 + fi +} \ No newline at end of file