From ae6d5fc50ad0f302f16e4482bed6a81aa6e083af Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 20 Jan 2025 19:53:22 +0800 Subject: [PATCH] docs: add default-terminal option to tmux configuration --- docs/image-preview.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/image-preview.md b/docs/image-preview.md index 6afc53e2..d6fd634a 100644 --- a/docs/image-preview.md +++ b/docs/image-preview.md @@ -48,9 +48,10 @@ it will automatically use the "Window system protocol" to display images - this ## tmux users {#tmux} -To enable Yazi's image preview to work correctly in tmux, add the following 3 options to your `tmux.conf`: +To enable Yazi's image preview to work correctly in tmux, add the following 4 options to your `tmux.conf`: ```sh +set -g default-terminal "tmux-256color" set -g allow-passthrough on set -ga update-environment TERM set -ga update-environment TERM_PROGRAM