yazi in ~

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2026-01-17 22:47:53 +01:00
parent 3be3a7a80a
commit 03a53b006b

View File

@@ -98,7 +98,7 @@
if not set -q IN_NIX_SHELL
if set -q SESSION_FROM_DE
set tmp (mktemp -t "yazi-cwd.XXXXX")
yazi --cwd-file="$tmp"
yazi --cwd-file="$tmp" ~
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end