aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/zsh/.zshrc
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:54:12 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:54:12 +0100
commit6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b (patch)
treeadc0cde19acc6a935cab83354cfe8dbf7a822bbd /home/.config/zsh/.zshrc
parent945dd3d3cb38d7de301a34ec3d5c7112dcab97c2 (diff)
downloaddotfiles-6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b.tar.gz
dotfiles-6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b.tar.bz2
dotfiles-6e096aed5c750d5e8d3b2c39d02ac5c5dcac8c6b.zip
fix: revert TERM hack for yazi in zellij
Ü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).
Diffstat (limited to 'home/.config/zsh/.zshrc')
-rw-r--r--home/.config/zsh/.zshrc8
1 files 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"