~dricottone/mail-filters

ref: b1a1f1c45b92fbfdba87ad9babc58a9caa2b177b mail-filters/src/open-in-browser.sh -rwxr-xr-x 277 bytes
b1a1f1c4Dominic Ricottone Significant updates 2 years ago
                                                                                
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"