dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit ae16694ff94b60535530a7534ce68c47889be9b9
parent f52cf1873250298287ce1d65985a45e586d6b52b
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun, 11 Jun 2023 23:57:33 +0200

lf: preview sqlite3

Diffstat:
Mlf/preview | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/lf/preview b/lf/preview @@ -48,6 +48,12 @@ case "$(printf "%s" "$1" | tr '[:upper:]' '[:lower:]')" in imgpreview "$CACHE" rm "$CACHE" ;; + *.db) + case $(file --mime-type "$1" -bL) in + application/x-sqlite3) command -v sqlite3 >/dev/null && sqlite3 "$1" '.schema';; + *) ;; + esac + ;; *) case $(file --mime-type "$1" -bL) in application/x-executable) readelf -h "$1" ;;