From 1e4d4650e22b4d4bf8a3d4a680561dc0a2559ea7 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 11 Mar 2023 21:54:18 +0000 Subject: [PATCH] home: zsh: disable shared history I know I just activated it, but I can't get used to it... I would like to have a mixture of it: * Be able to search across *all* shell histories when using Ctrl-r. * Only go up/down my session's shell history when using Ctrl-n/Ctrl-p. Enabling shared history gets me the first one, but means I can't limit my up/down history to just the one session. Disabling shared history means that I can't search across all shell histories, but keeps my up/down history tidier. All-in-all I like the second one better. --- home/zsh/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 6713458..4760d39 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -34,7 +34,7 @@ in expireDuplicatesFirst = true; ignoreSpace = true; ignoreDups = true; - share = true; + share = false; path = "${config.xdg.dataHome}/zsh/zsh_history"; };