cleanup
This commit is contained in:
parent
3383640dda
commit
e2a29fac4f
2 changed files with 9 additions and 8 deletions
|
@ -113,6 +113,10 @@ mimetest() {
|
|||
run lynx -dump "$f"
|
||||
exit 1
|
||||
;;
|
||||
*text*)
|
||||
text
|
||||
exit
|
||||
;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
@ -127,11 +131,6 @@ if command -v gio 1>/dev/null 2>&1; then
|
|||
mimetest "$giorun" && exit 1
|
||||
fi
|
||||
|
||||
case "$(file -b "$f")" in
|
||||
*text*) text ;;
|
||||
*)
|
||||
printf "%b" "\$(file --mime-type)\t\t\t : $filerun\n"
|
||||
[ -n "$giorun" ] && printf "%b" "\$(gio info)\t\t\t\t : $giorun\n"
|
||||
mediainfo "$1" | head -n -2 | grep -v -e "Complete name" -e "General"
|
||||
;;
|
||||
esac
|
||||
printf "%b" "\$(file --mime-type)\t\t\t : $filerun\n"
|
||||
[ -n "$giorun" ] && printf "%b" "\$(gio info)\t\t\t\t : $giorun\n"
|
||||
mediainfo "$1" | head -n -2 | grep -v -e "Complete name" -e "General"
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,3 +3,5 @@
|
|||
.config/zsh/configs/host-setup
|
||||
.local/share/service
|
||||
.config/nvim/lazyvim.json
|
||||
.config/nvim/lua/config/secrets.lua
|
||||
.local/share/xkb/compiled/keymap
|
||||
|
|
Loading…
Add table
Reference in a new issue