New directory structure + basilisk

This commit is contained in:
2026-01-12 19:32:18 -07:00
parent 298eb76909
commit ff69bb8284
316 changed files with 2467 additions and 1375 deletions

29
home/.local/bin/f Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
path=$1
if [ -z "$path" ]; then
path="."
fi
if [ -d "$path" ]; then
ls -lha --color=tty "$path"
else
if [ ! -f "$path" ]; then
echo "No such file: $path"
exit 0
fi
format="$(file -i "$path" | cut -d' ' -f2)"
format="${format%%/*}"
case "$format" in
"image")
kitty +kitten icat "$path"
;;
*)
cat "$path"
;;
esac
fi