i be working

This commit is contained in:
2026-03-13 12:21:18 +00:00
parent 442284c92f
commit 24bad1f5c4
7 changed files with 108 additions and 8 deletions
+10 -1
View File
@@ -1,8 +1,17 @@
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
# In Zellij + Alacritty, force Yazi away from graphical adapters and into Chafa.
# This gives text/blocks previews instead of broken/blank image panes.
if set -q ZELLIJ
env -u DISPLAY -u WAYLAND_DISPLAY -u SWAYSOCK -u HYPRLAND_INSTANCE_SIGNATURE -u WAYFIRE_SOCKET TERM=xterm-256color yazi $argv --cwd-file="$tmp"
else
yazi $argv --cwd-file="$tmp"
end
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end