mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
5709b5f953
The corresponding variable is `HISTORY_IGNORE` described in zshparam(1).
21 lines
469 B
Nix
21 lines
469 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [
|
|
({ ... }: { config.programs.zsh.history.ignorePatterns = [ "echo *" ]; })
|
|
({ ... }: { config.programs.zsh.history.ignorePatterns = [ "rm *" ]; })
|
|
];
|
|
|
|
config = {
|
|
programs.zsh.enable = true;
|
|
|
|
nixpkgs.overlays =
|
|
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
|
|
|
|
nmt.script = ''
|
|
assertFileContains home-files/.zshrc "HISTORY_IGNORE='(echo *|rm *)'"
|
|
'';
|
|
};
|
|
}
|