✨ Added openstreet map script/alias
This commit is contained in:
parent
b1144e09b5
commit
9fa7af7382
2 changed files with 14 additions and 0 deletions
13
scripts/osm
Executable file
13
scripts/osm
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue