aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix')
-rw-r--r--infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix b/infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix
new file mode 100644
index 000000000000..0c052d6949ec
--- /dev/null
+++ b/infra/libkookie/home-manager/tests/modules/programs/zsh/history-path-new-custom.nix
@@ -0,0 +1,20 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+
+{
+ config = {
+ home.stateVersion = "20.03";
+ programs.zsh = {
+ enable = true;
+ history.path = "$HOME/some/directory/zsh_history";
+ };
+
+ nixpkgs.overlays =
+ [ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
+
+ nmt.script = ''
+ assertFileRegex home-files/.zshrc '^HISTFILE="$HOME/some/directory/zsh_history"$'
+ '';
+ };
+}