diff --git a/dots/lf/lfrc b/dots/lf/lfrc index 9079627..c4da262 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -66,14 +66,15 @@ cmd open ${{ case "$f" in *.[Rr][Pp][Pp]*) reaper $fx;; + *) case $(file --mime-type -Lb $f) in + text/*) helix $fx;; + *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; + esac - case $(file --mime-type -Lb $f) in - text/*) helix $fx;; - *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; - esac esac + }} #cmd open ${{