18 lines
254 B
Bash
18 lines
254 B
Bash
##? open file in $BROWSER
|
|
|
|
if [[ -z "$BROWSER" ]]; then
|
|
echo 'set $BROWSER'
|
|
return
|
|
fi
|
|
for i
|
|
do
|
|
if [[ ! -r $i ]]
|
|
then
|
|
echo "$0: file doesn't exist: \`$i'" >&2
|
|
continue
|
|
fi
|
|
$BROWSER "$i" > /dev/null 2>&1 &
|
|
disown
|
|
done
|
|
|
|
# vim: ft=zsh sw=2 ts=2 et
|