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 .)
|
arg=$(test $# -gt 0 && echo "${@:-1}" || echo .)
|
||||||
file $arg | grep -v --color=never directory
|
file $arg | grep -v --color=never directory
|
||||||
case "$(file --dereference --mime $arg)" in
|
case "$(file --dereference --mime $arg)" in
|
||||||
*directory) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";;
|
*inode/directory*) ls -l --color=auto --almost-all --human-readable --group-directories-first --file-type --dereference-command-line "$@";;
|
||||||
*binary*) ;;
|
*binary) ;;
|
||||||
*) bat --style header "$@";;
|
*) bat --style header "$@";;
|
||||||
esac
|
esac
|
||||||
#fi
|
#fi
|
||||||
|
|
Loading…
Reference in New Issue