diff --git a/dotfiles/shell/aliases b/dotfiles/shell/aliases index e29ef3b..cbf951a 100644 --- a/dotfiles/shell/aliases +++ b/dotfiles/shell/aliases @@ -119,3 +119,11 @@ calc() { echo -n "$* = " python -c "print($*)" } + +whois-firefox() { + mkfifo pipe; cat pipe & + coords=$(whois "$1" | tee pipe | grep geoloc | sed -r 's/^geoloc:\s+//' | sort | uniq) + slash_coords=${coords// /\/} + firefox "https://osm.org/search?query=$coords#map=16/$slash_coords" + rm pipe +}