add sxiv_dir script
This commit is contained in:
parent
636c0562b3
commit
32e7af65bd
13
scripts/scripts/sxiv_dir
Executable file
13
scripts/scripts/sxiv_dir
Executable file
@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
Loading…
x
Reference in New Issue
Block a user