files: lf: Fix open command

impermanence
Luis Guilherme Coelho 2024-05-30 15:54:09 -03:00
parent 168c884570
commit 1607913e54
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@ set info time
# Custom Functions # Custom Functions
cmd open ${{ cmd open ${{
case $(file -bL --mime-type "$1") in case $(file -bL --mime-type "$f") in
text/*) setsid -f "$TERMINAL -e xdg-open $f" >/dev/null 2>&1 &;; text/*) setsid -f "$TERMINAL" -e xdg-open "$f" >/dev/null 2>&1 &;;
*) setsid -f xdg-open "$f" >/dev/null 2>&1 &;; *) setsid -f xdg-open "$f" >/dev/null 2>&1 &;;
esac esac
}} }}