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.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;
|
||||||
};
|
};
|
||||||
|
@ -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 = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user