From 26528c66e14ebdc4ec30e472e5aa1194e15ed8af Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 4 Jul 2024 20:27:39 +0300 Subject: [PATCH 1/3] zsh tmux history sharing --- zsh/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 59ed118..7414f22 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -5,3 +5,6 @@ then autoload -Uz compinit compinit fi + +setopt appendhistory # Append history to the history file (no overwriting) +setopt incappendhistory # Immediately append to the history file, not just when a term is killed From d8763db08db0a965585a758af9333cd645f4fddc Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 4 Jul 2024 20:28:05 +0300 Subject: [PATCH 2/3] [tmux] increased scrollback up to 10k lines --- tmux.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/tmux.conf b/tmux.conf index 17e88c4..6a2224e 100755 --- a/tmux.conf +++ b/tmux.conf @@ -2,6 +2,7 @@ set -g default-terminal "screen-256color" set -g mouse on set -g set-clipboard external set -g escape-time 10 # https://www.johnhawthorn.com/2012/09/vi-escape-delays/ +set -g history-limit 10000 set-option -g status-position top set-window-option -g allow-rename off set allow-rename off From 09eba0e76ef0286266171e0506a2c9c472acedea Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Thu, 4 Jul 2024 20:42:03 +0300 Subject: [PATCH 3/3] [zsh] ignore repeated duplicates --- zsh/zshrc | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/zshrc b/zsh/zshrc index 7414f22..868293c 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -8,3 +8,4 @@ fi setopt appendhistory # Append history to the history file (no overwriting) setopt incappendhistory # Immediately append to the history file, not just when a term is killed +setopt histignoredups