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.thefuck.enable = true;
config.programs.zsh = { config.programs.zsh = {
enable = true; enable = true;
histSize = 100000; histSize = 1000000;
histFile = "$HOME/.zsh_history"; histFile = "$HOME/.zsh_history";
setOptions = [
"INC_APPEND_HISTORY"
"SHARE_HISTORY"
];
syntaxHighlighting = { syntaxHighlighting = {
enable = true; enable = true;
}; };

View File

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