Files
.dots/scripts/scripts/sxiv_dir
2024-04-18 22:35:07 +02:00

14 lines
246 B
Bash
Executable File

#!/bin/sh
if command -v sxiv >/dev/null 2>&1; then
if [ -d "${@: -1}" ] || [ -h "${@: -1}" ]; then
sxiv -t "$@"
else
sxiv "$@"
fi
elif command -v feh >/dev/null 2>&1; then
feh "$@"
else
echo "Please install SXIV or FEH!"
fi