# SXIV specific config options imported by .bashrc # Seamlessly display an image in SXIV, even when an URL is provided. # Note that no check is performed on the URL. img() { case $@ in http*://*) local img=$(mktemp) curl -o "$img" -s "$@" sxiv "$img" ;; *) sxiv "$@" ;; esac }