+ libsixel
This commit is contained in:
@@ -147,6 +147,7 @@ keepassxc # password manager
|
|||||||
kitty # terminal
|
kitty # terminal
|
||||||
less # cli text viewer
|
less # cli text viewer
|
||||||
lf # file manager
|
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
|
lm_sensors # tools for general smbus access and hardware monitoring
|
||||||
nextcloud-client # nextcloud sync client
|
nextcloud-client # nextcloud sync client
|
||||||
noto-fonts # google noto ttf fonts
|
noto-fonts # google noto ttf fonts
|
||||||
|
|||||||
@@ -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() {
|
spf() {
|
||||||
os=$(uname -s)
|
os=$(uname -s)
|
||||||
|
|||||||
Reference in New Issue
Block a user