bin/b: fix directory matching
This commit is contained in:
parent
1ddbd75d06
commit
ff04aba675
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue