From ff04aba67561e04d4e9e6e663dfc3815ec50ceb4 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Fri, 13 Nov 2020 13:51:04 +0100 Subject: [PATCH] bin/b: fix directory matching --- .local/bin/b | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/b b/.local/bin/b index 4699c3c..7eacec8 100755 --- a/.local/bin/b +++ b/.local/bin/b @@ -11,8 +11,8 @@ arg=$(test $# -gt 0 && echo "${@:-1}" || echo .) file $arg | grep -v --color=never directory case "$(file --dereference --mime $arg)" in - *directory) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";; - *binary*) ;; + *inode/directory*) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";; + *binary) ;; *) bat --style header "$@";; esac #fi