carapace: add xgettext workaround
This commit is contained in:
parent
aed5ed979e
commit
5f5cb7a613
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue