summaryrefslogtreecommitdiff
path: root/.scripts/sxivf
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/sxivf')
-rwxr-xr-x.scripts/sxivf8
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/sxivf b/.scripts/sxivf
new file mode 100755
index 0000000..a555a73
--- /dev/null
+++ b/.scripts/sxivf
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if command -v sxiv >/dev/null 2>&1; then
+ if [ -d "${@: -1}" ] || [ -h "${@: -1}" ]; then
+ sxiv -t "$@"
+ else
+ sxiv "$@"
+fi