added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue