1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

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.
This commit is contained in:
Bryn Edwards 2025-04-30 05:15:32 +01:00 committed by GitHub
parent 84d262115e
commit ca39b34829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
''
}
'';