From ed1eb4cfddba1be85cb16702d7a42803d1ff55e8 Mon Sep 17 00:00:00 2001 From: liyangau Date: Tue, 14 Oct 2025 18:21:05 +1100 Subject: [PATCH] fix config file location on macOS and fix test --- modules/programs/intelli-shell.nix | 2 +- tests/modules/programs/intelli-shell/settings.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/programs/intelli-shell.nix b/modules/programs/intelli-shell.nix index d69fba08b..b8fe1b2b0 100644 --- a/modules/programs/intelli-shell.nix +++ b/modules/programs/intelli-shell.nix @@ -80,7 +80,7 @@ in let configPath = if pkgs.stdenv.hostPlatform.isDarwin then - "Library/Preferences/org.IntelliShell.Intelli-Shell" + "Library/Application Support/org.IntelliShell.Intelli-Shell" else ".config/intelli-shell"; in diff --git a/tests/modules/programs/intelli-shell/settings.nix b/tests/modules/programs/intelli-shell/settings.nix index 1e1e2627c..9f423da60 100644 --- a/tests/modules/programs/intelli-shell/settings.nix +++ b/tests/modules/programs/intelli-shell/settings.nix @@ -27,13 +27,13 @@ let configPath = if pkgs.stdenv.hostPlatform.isDarwin then - "Library/Preferences/org.IntelliShell.Intelli-Shell" + "Library/Application Support/org.IntelliShell.Intelli-Shell" else ".config/intelli-shell"; in '' - assertFileExists home-files/${configPath}/config.toml - assertFileContent home-files/${configPath}/config.toml \ + assertFileExists 'home-files/${configPath}/config.toml' + assertFileContent 'home-files/${configPath}/config.toml' \ ${./config.toml} ''; }