nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.09k stars 80 forks source link

Issue with per-directory history #80

Open jmc-figueira opened 2 years ago

jmc-figueira commented 2 years ago

After having removed the /etc/NIXOS file from the persisted files (as, it turns out, it's unecessary to persist it, as NixOS will regenerate it if not present), I am now facing another issue, upon opening a shell with the per-directory-history oh-my-zsh plugin:

_per-directory-history-set-directory-history:1: can't rename /home/jmc-figueira/.zsh_history.new to $HISTFILE
error: Invalid value for '--jobs <JOBS>': cannot parse integer from empty string

For more information try --help

Somehow, impermanence interferes with the mechanism this plugin uses to manage the zsh histories per directory. I wonder if there are other issues present of the sort; the following error (about the --jobs argument) does not seem to be related to this, but I was unable to pinpoint its cause as of yet.

EDIT: the --jobs error is related to starship, which is even more odd, as I do not have the starship config persisted through impermanence; it might be unrelated to the issue at hand, however.

talyz commented 2 years ago

So it's trying to move /home/jmc-figueira/.zsh_history.new to $HISTFILE: is one or both persisted? How do the permissions look for the files?