sane-which: only print the first 30 lines for text files

This commit is contained in:
Colin 2024-02-28 18:09:38 +00:00
parent b515127101
commit 9e504676bd

View File

@ -39,7 +39,7 @@ echo
case $(file --brief --mime "$cur") in
(*text*)
cat "$cur"
head -n30 "$cur"
;;
(*)
echo $(file "$cur")