From 5b3d4b3330f7eaba0dc4b20458bb6d76b069d189 Mon Sep 17 00:00:00 2001 From: committer Date: Sat, 1 Jun 2024 12:31:22 -0500 Subject: [PATCH] u --- dots/lf/lfrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 ${{