From ca39b348299bb772a7cca2271cef9b91845a390a Mon Sep 17 00:00:00 2001 From: Bryn Edwards Date: Wed, 30 Apr 2025 05:15:32 +0100 Subject: [PATCH] carapace: fix nushell PATH env var (#6936) `carapace _carapace nushell` adds `/homeless-shelter/.config/carapace/bin` to PATH, this changes it to ` $HOME/.config/carapace/bin`. Other shells don't have this problem as they run the command and source on startup whereas Nix writes the command output to a file as part of the build. --- modules/programs/carapace.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/carapace.nix b/modules/programs/carapace.nix index ecdc16e3..fefa72cc 100644 --- a/modules/programs/carapace.nix +++ b/modules/programs/carapace.nix @@ -49,7 +49,7 @@ in extraConfig = '' source ${ pkgs.runCommand "carapace-nushell-config.nu" { } '' - ${bin} _carapace nushell >> "$out" + ${bin} _carapace nushell | sed 's|"/homeless-shelter|$"($env.HOME)|g' >> "$out" '' } '';