zsh: move .zsh_history to ~/.local/share/zsh

this works better with impermanence (see code comment)
This commit is contained in:
2022-10-22 04:08:37 -07:00
parent b43103a024
commit 8f61ba6085

View File

@@ -1,13 +1,16 @@
{ ... }: { ... }:
{ {
sane.impermanence.home-files = [ ".zsh_history" ]; # we don't need to full zsh dir -- just the history file --
# but zsh will sometimes backup the history file and we get fewer errors if we do proper mounts instead of symlinks.
sane.impermanence.home-dirs = [ ".local/share/zsh" ];
home-manager.users.colin.programs.zsh = { home-manager.users.colin.programs.zsh = {
enable = true; enable = true;
enableSyntaxHighlighting = true; enableSyntaxHighlighting = true;
enableVteIntegration = true; enableVteIntegration = true;
history.ignorePatterns = [ "rm *" ]; history.ignorePatterns = [ "rm *" ];
# history.path = TODO
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history.path = ".local/share/zsh/history";
initExtraBeforeCompInit = '' initExtraBeforeCompInit = ''
# p10k instant prompt # p10k instant prompt