1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# open-in-browser.sh
# ==================
# A wrapper around parcels which opens a selected URL in a browser.
PARCELS_INSTALL_DIR=/usr/local/bin
BROWSER=firefox
url="$($PARCELS_INSTALL_DIR/parcels -n "$1")"
if [ -z "$url" ]; then
exit 1
fi
exec $BROSWER "$url"