Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 27 lines (25 sloc) 591 Bytes
#! /bin/sh
# Open specified links in browsers, defaulting to the contents of ~/urls if none
# specified.
if [ ${#@} -eq 0 ]
then
for i in $(< ~/urls)
do
xdg-open "$i"
# Browser occasionally swallows messages when they arrive too fast.
sleep 0.4s
done
else
for i in $@
do
filename=$(readlink -nf $i)
if [ -z "${filename}" ]
then
xdg-open "${i}"
else
xdg-open "${filename}"
fi
# Browser occasionally swallows messages when they arrive too fast.
sleep 0.4s
done
fi
Something went wrong with that request. Please try again.