zsh: fix history and empty .zshrc
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f1262d8710
commit
562ed2f53f
@ -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;
|
||||
};
|
||||
|
@ -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 = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user