From 1607913e54043b2ea896bf155137b7fb4d69e4eb Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Thu, 30 May 2024 15:54:09 -0300 Subject: [PATCH] files: lf: Fix open command --- home-environments/radio/files/.config/lf/lfrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-environments/radio/files/.config/lf/lfrc b/home-environments/radio/files/.config/lf/lfrc index cab8bb0..91f8342 100644 --- a/home-environments/radio/files/.config/lf/lfrc +++ b/home-environments/radio/files/.config/lf/lfrc @@ -29,8 +29,8 @@ set info time # Custom Functions cmd open ${{ - case $(file -bL --mime-type "$1") in - text/*) setsid -f "$TERMINAL -e xdg-open $f" >/dev/null 2>&1 &;; + case $(file -bL --mime-type "$f") in + text/*) setsid -f "$TERMINAL" -e xdg-open "$f" >/dev/null 2>&1 &;; *) setsid -f xdg-open "$f" >/dev/null 2>&1 &;; esac }}