#!/bin/sh
set -f

if [ "$2" ]; then
    for f in "$@"; do
        # shellcheck disable=2086
        rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" -p 0 $f
    done
else
    rifle -c "$XDG_CONFIG_HOME/lf/rifle.conf" -p 0 "$1"
fi