aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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"