diff --git a/etc/lfrc.example b/etc/lfrc.example index b50f28d4..5bae9aa1 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -42,6 +42,7 @@ map O $mimeopen --ask "$f" # use either file extensions and/or mime types here. Below uses an editor for # text files and a file opener for the rest. cmd open &{{ + set -f case $(file --mime-type -Lb "$f") in text/*) lf -remote "send $id \$$EDITOR \$fx";; *) for f in $fx; do $OPENER "$f" > /dev/null 2> /dev/null & done;;