From 4cbb21175706d193ba4c3b0057ff156069783da3 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Thu, 28 Jun 2018 21:53:42 +0300 Subject: [PATCH] use env vars in example config --- etc/lfrc.example | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/lfrc.example b/etc/lfrc.example index 462c0a57..5ff25113 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -32,7 +32,7 @@ map o &mimeopen $f map O $mimeopen --ask $f # show documentation (overrides 'search-back' command) -map ? $lf -doc | less +map ? $lf -doc | $PAGER # define a custom 'open' command # This command is called when current file is not a directory. You may want to @@ -40,8 +40,8 @@ map ? $lf -doc | less # text files and a file opener for the rest. cmd open ${{ case $(file --mime-type $f -b) in - text/*) vi $fx;; - *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;; + text/*) $EDITOR $fx;; + *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; esac }}