From 6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:54:12 +0100 Subject: fix: revert TERM hack for yazi in zellij MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Überzug++ Wayland overlay coordinates are wrong inside zellij panes, so the TERM=xterm-kitty workaround doesn't actually produce image previews. Image previews work natively outside zellij; inside zellij all image paths are broken until zellij adds Kitty graphics passthrough (zellij#775). --- home/.config/zsh/.zshrc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/home/.config/zsh/.zshrc b/home/.config/zsh/.zshrc index a7d24db..bd03e8b 100644 --- a/home/.config/zsh/.zshrc +++ b/home/.config/zsh/.zshrc @@ -221,14 +221,10 @@ alias sysu='systemctl --user' # Navigation alias c='clear' -# Yazi: cd-on-exit wrapper (force ueberzug++ inside zellij for image previews) +# Yazi: cd-on-exit wrapper y() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" - if [[ -n "$ZELLIJ" ]]; then - TERM=xterm-kitty command yazi "$@" --cwd-file="$tmp" - else - command yazi "$@" --cwd-file="$tmp" - fi + command yazi "$@" --cwd-file="$tmp" IFS= read -r -d '' cwd < "$tmp" [[ "$cwd" != "$PWD" ]] && [[ -d "$cwd" ]] && builtin cd -- "$cwd" rm -f -- "$tmp" -- cgit v1.2.3-70-g09d2