summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
authorShubham Saini <ssaini@fispan.com>2022-09-05 23:21:20 +0000
committerShubham Saini <ssaini@fispan.com>2022-09-05 23:21:20 +0000
commitcf0f012dcfbf51282642d6b877ebdaa21d839ecc (patch)
tree827dd7bf572f000da387b1894f6ab5c50360cf26 /lf
parentd4066c231818cb3e8c97d961d0eb89e83180a0d8 (diff)
darwin open
Diffstat (limited to 'lf')
-rw-r--r--lf/.config/lf/lfrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lf/.config/lf/lfrc b/lf/.config/lf/lfrc
index d10983c..1bd64ee 100644
--- a/lf/.config/lf/lfrc
+++ b/lf/.config/lf/lfrc
@@ -42,6 +42,7 @@ cmd open ${{
42 test -L $f && f=$(readlink -f $f) 42 test -L $f && f=$(readlink -f $f)
43 case $(file --mime-type $f -b) in 43 case $(file --mime-type $f -b) in
44 text/*) $EDITOR $fx;; 44 text/*) $EDITOR $fx;;
45 video/*|image/*|application/pdf) open $fx;;
45 *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;; 46 *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
46 esac 47 esac
47}} 48}}