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