added stuff

This commit is contained in:
Charlie Root 2024-04-09 23:11:33 +02:00
commit 9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
case "$1" in
-*) exit 0 ;;
esac
case "$(file --mime-type "$1")" in
*text*)
bat --color always --plain "$1"
;;
*image* | *pdf)
catimg -w 100 -r 2 "$1"
;;
*directory*)
eza --icons -1 --color=always "$1"
;;
*)
echo "unknown file format"
;;
esac