sane-which: only print the first 30 lines for text files
This commit is contained in:
@@ -39,7 +39,7 @@ echo
|
||||
|
||||
case $(file --brief --mime "$cur") in
|
||||
(*text*)
|
||||
cat "$cur"
|
||||
head -n30 "$cur"
|
||||
;;
|
||||
(*)
|
||||
echo $(file "$cur")
|
||||
|
Reference in New Issue
Block a user