about summary refs log tree commit diff stats
path: root/examples/rifle_sxiv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rifle_sxiv.sh')
-rwxr-xr-xexamples/rifle_sxiv.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh
index 6d87d2ad..8388fa10 100755
--- a/examples/rifle_sxiv.sh
+++ b/examples/rifle_sxiv.sh
@@ -35,6 +35,7 @@ is_img () {
 case "$1" in
     "") echo "Usage: ${0##*/} PICTURES" >/dev/stderr && exit ;;
     /*) target="$1" ;;
+    "~"/*) target="$HOME/${1#"~"/}" ;;
     *)  target="$PWD/$1" ;;
 esac