Added openstreet map script/alias

This commit is contained in:
z3rOR0ne 2022-12-04 18:59:32 -08:00
parent b1144e09b5
commit 9fa7af7382
2 changed files with 14 additions and 0 deletions

13
scripts/osm Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
lastarg=("${@: -1}")
search=""
for ARG in "${@}" ; do
if [[ $ARG == "${lastarg[1]}" ]] ; then
search+="${ARG}"
else
search+="${ARG}+"
fi
done
$BROWSER "https://www.openstreetmap.org/search?query=${search}"