zsh: fix history and empty .zshrc
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2023-05-11 21:12:57 +01:00 committed by JakeHillion
parent f1262d8710
commit 562ed2f53f
2 changed files with 23 additions and 8 deletions

View File

@ -6,9 +6,14 @@
config.programs.thefuck.enable = true;
config.programs.zsh = {
enable = true;
histSize = 100000;
histSize = 1000000;
histFile = "$HOME/.zsh_history";
setOptions = [
"INC_APPEND_HISTORY"
"SHARE_HISTORY"
];
syntaxHighlighting = {
enable = true;
};

View File

@ -1,16 +1,26 @@
{ pkgs, lib, config, ... }:
{
home-manager.users.root.home.stateVersion = "22.11";
home-manager.users.jake.home.stateVersion = "22.11";
imports = [
./git.nix
./tmux/default.nix
];
## Set an empty ZSH config and defer to the global one
## This is particularly important for root on tmpfs
home-manager.users.root.programs.zsh.enable = true;
home-manager.users.jake.programs.zsh.enable = true;
config = {
home-manager = {
users.root.home = {
stateVersion = "22.11";
## Set an empty ZSH config and defer to the global one
file.".zshrc".text = "";
};
users."${config.custom.user}".home = {
stateVersion = "22.11";
## Set an empty ZSH config and defer to the global one
file.".zshrc".text = "";
};
};
};
}