Persist zsh history better
This commit is contained in:
parent
fbc3d2ccb7
commit
33cb845cb1
@ -50,6 +50,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
persist.state.directories = [ "/home/balsoft/.config/Yubico" ];
|
||||
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
||||
'';
|
||||
|
@ -3,7 +3,8 @@
|
||||
environment.pathsToLink = [ "/share/zsh" ];
|
||||
environment.sessionVariables.SHELL = "zsh";
|
||||
|
||||
persist.state.homeFiles = [ ".zsh_history" ];
|
||||
# A history file is screwed up otherwise :(
|
||||
persist.state.directories = [ "/home/balsoft/.config/zsh/history" ];
|
||||
|
||||
home-manager.users.balsoft.programs.zsh = {
|
||||
enable = true;
|
||||
@ -15,9 +16,12 @@
|
||||
plugins = [ "git" "dirhistory" ];
|
||||
};
|
||||
|
||||
dotDir = ".config/zsh";
|
||||
|
||||
history = rec {
|
||||
size = 1000000;
|
||||
save = size;
|
||||
path = "$HOME/.config/zsh/history/file";
|
||||
};
|
||||
plugins = [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user