1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

carapace: add xgettext workaround

This commit is contained in:
Robert Helgesson 2023-09-13 23:35:19 +02:00 committed by Mikilio
parent 088f23f690
commit fe9daa8aae
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F

View file

@ -50,12 +50,14 @@ in {
'';
nushell = mkIf cfg.enableNushellIntegration {
# Note, the ${"$"} below is a work-around because xgettext otherwise
# interpret it as a Bash i18n string.
extraEnv = ''
let carapace_cache = "${config.xdg.cacheHome}/carapace"
if not ($carapace_cache | path exists) {
mkdir $carapace_cache
}
${bin} _carapace nushell | save -f $"($carapace_cache)/init.nu"
${bin} _carapace nushell | save -f ${"$"}"($carapace_cache)/init.nu"
'';
extraConfig = ''
source ${config.xdg.cacheHome}/carapace/init.nu