dotfiles/home/private_dot_config/zsh/functions/executable_web

19 lines
254 B
Text
Raw Normal View History

2023-02-17 09:26:31 -06:00
##? 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