From 832d1cfd0d970291747d00d1aff056f57981237e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 19 Sep 2022 13:04:29 +0200 Subject: [PATCH] tmux: Write prompt history to XDG_DATA --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e39cb9b..cccc205 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -2,6 +2,10 @@ set -g default-terminal "tmux-256color" set -g mouse on set -g mode-keys vi +set -g prompt-history-limit 999999 +set -g history-file "$XDG_DATA_HOME/tmux/tmux_history" +run-shell 'mkdir -p "${XDG_DATA_HOME:-$HOME/.local/share}/tmux"' + # Better clipboard on mousedrag (https://unix.stackexchange.com/a/349020) # Disable xterm escape sequences for setting clipboard set -s set-clipboard off