+ libsixel
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user