mirror of
https://github.com/nix-community/home-manager
synced 2024-12-26 03:39:47 +01:00
carapace: add xgettext workaround
This commit is contained in:
parent
088f23f690
commit
fe9daa8aae
1 changed files with 3 additions and 1 deletions
|
@ -50,12 +50,14 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nushell = mkIf cfg.enableNushellIntegration {
|
nushell = mkIf cfg.enableNushellIntegration {
|
||||||
|
# Note, the ${"$"} below is a work-around because xgettext otherwise
|
||||||
|
# interpret it as a Bash i18n string.
|
||||||
extraEnv = ''
|
extraEnv = ''
|
||||||
let carapace_cache = "${config.xdg.cacheHome}/carapace"
|
let carapace_cache = "${config.xdg.cacheHome}/carapace"
|
||||||
if not ($carapace_cache | path exists) {
|
if not ($carapace_cache | path exists) {
|
||||||
mkdir $carapace_cache
|
mkdir $carapace_cache
|
||||||
}
|
}
|
||||||
${bin} _carapace nushell | save -f $"($carapace_cache)/init.nu"
|
${bin} _carapace nushell | save -f ${"$"}"($carapace_cache)/init.nu"
|
||||||
'';
|
'';
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
source ${config.xdg.cacheHome}/carapace/init.nu
|
source ${config.xdg.cacheHome}/carapace/init.nu
|
||||||
|
|
Loading…
Reference in a new issue