+ libsixel

This commit is contained in:
committer@tuxwarrior
2026-02-27 13:21:01 -05:00
parent 28ef2fea43
commit cbffbab5fe
2 changed files with 17 additions and 1 deletions

View File

@@ -147,6 +147,7 @@ keepassxc # password manager
kitty # terminal
less # cli text viewer
lf # file manager
libsixel # codec for dec sixel graphics and some converter programs (used by lf to preview images)
lm_sensors # tools for general smbus access and hardware monitoring
nextcloud-client # nextcloud sync client
noto-fonts # google noto ttf fonts

View File

@@ -88,7 +88,22 @@ esac
# ---
# superfile
# lf (change directory on quit)
# ---
lf() {
local tmp=$(mktemp)
command lf -last-dir-path="$tmp" "$@"
if [[ -f "$tmp" ]]; then
local dir=$(cat "$tmp")
rm -f "$tmp"
if [[ -d "$dir" && "$dir" != "$(pwd)" ]]; then
cd "$dir"
fi
fi
}
# ---
# superfile (change directory on quit)
# ---
spf() {
os=$(uname -s)