nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2f6046e6daa9f0391f88d9ffab4aed326814c087
parent 73a54e7550debbac415b8eec460c787220b9b3af
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun, 21 Mar 2021 19:33:43 +0530

Use short options

Diffstat:
Mplugins/nuke | 2+-
Mplugins/preview-tabbed | 2+-
Mplugins/preview-tui | 4++--
Mplugins/preview-tui-ext | 4++--
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugins/nuke b/plugins/nuke @@ -510,7 +510,7 @@ handle_blocked() { esac } -MIMETYPE="$( file --dereference --brief --mime-type -- "${FPATH}" )" +MIMETYPE="$( file -bL --mime-type -- "${FPATH}" )" handle_extension handle_multimedia "${MIMETYPE}" handle_mime "${MIMETYPE}" diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed @@ -138,7 +138,7 @@ previewer_loop () { kill_viewer - MIME="$(file -b --mime-type "$FILE")" + MIME="$(file -bL --mime-type "$FILE")" case "$MIME" in video/*) diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -137,8 +137,8 @@ preview_file () { # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')" diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext @@ -148,8 +148,8 @@ preview_file () { # Detecting the exact type of the file: the encoding, mime type, and # extension in lowercase. - encoding="$(file -Lb --mime-encoding -- "$1")" - mimetype="$(file -Lb --mime-type -- "$1")" + encoding="$(file -bL --mime-encoding -- "$1")" + mimetype="$(file -bL --mime-type -- "$1")" ext="${1##*.}" if [ -n "$ext" ]; then ext="$(printf "%s" "${ext}" | tr '[:upper:]' '[:lower:]')"