zsh: move .zsh_history to ~/.local/share/zsh
this works better with impermanence (see code comment)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user