From 8ebd77163c1886e8df19bce29678e8a401fe7ec3 Mon Sep 17 00:00:00 2001 From: Mo0rBy Date: Tue, 30 Jul 2024 05:56:58 +0100 Subject: [PATCH] Add tmux options to fix yazi image preview --- tmux/tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 91130ae..424e363 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -2,6 +2,11 @@ set-option -g default-terminal "tmux-256color" set-option -sa terminal-overrides ",xterm*:RGB" +# options needed for yazi imagepreview (https://yazi-rs.github.io/docs/image-preview/#tmux) +set -g allow-passthrough on +set -ga update-environment TERM +set -ga update-environment TERM_PROGRAM + # re-map the tmux prefix key to ctrl+a set -g prefix C-a unbind C-b