you can shorten ev to
ev(){ evince -d ${DISPLAY=:0} ${1+"$@"};}
you might wanna background it from your tty
ev() { evince ${1+"$@"}&}
unless you need to see the display errors
or have an rm $pdf waiting to not fire prematurely
Op do 15 mei 2025 om 18:00 schreef <[email protected]>:
> ev () { case $# in
> 0) /usr/bin/evince --display=:0 ;;
> 1) /usr/bin/evince --display=:0 $1 ;;
> *) echo "Too many arguments." ;; esac }
> Can improvements be suggested?
work: en.wikibooks.org/wiki/User:PeterEasthope
en.wikibooks.org/wiki/Forth i ♥️