diff --git a/dots/lf/lfrc b/dots/lf/lfrc index c124e84..9079627 100644 --- a/dots/lf/lfrc +++ b/dots/lf/lfrc @@ -66,12 +66,14 @@ 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 + 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 }} #cmd open ${{