fixed bug in .fernrc renderer in hm module

This commit is contained in:
2026-02-19 18:09:57 -05:00
parent 54b20eea75
commit 32cad70d98

View File

@@ -108,7 +108,9 @@ in
home.file.".fernrc".text = lib.concatLines [ home.file.".fernrc".text = lib.concatLines [
cfg.settings.extraPreConfig cfg.settings.extraPreConfig
lib.concatLines [ (lib.concatLines (lib.mapAttrsToList (name: value: "export ${name}='${value}'") cfg.environmentVars))
(lib.concatLines (lib.mapAttrsToList (name: value: "alias ${name}='${value}'") cfg.aliases))
(lib.concatLines [
"shopt core.dotglob=${boolToString cfg.settings.dotGlob}" "shopt core.dotglob=${boolToString cfg.settings.dotGlob}"
"shopt core.autocd=${boolToString cfg.settings.autocd}" "shopt core.autocd=${boolToString cfg.settings.autocd}"
"shopt core.hist_ignore_dupes=${boolToString cfg.settings.historyIgnoresDupes}" "shopt core.hist_ignore_dupes=${boolToString cfg.settings.historyIgnoresDupes}"
@@ -122,7 +124,7 @@ in
"shopt prompt.comp_limit=${toString cfg.settings.completionLimit}" "shopt prompt.comp_limit=${toString cfg.settings.completionLimit}"
"shopt prompt.highlight=${boolToString cfg.settings.syntaxHighlighting}" "shopt prompt.highlight=${boolToString cfg.settings.syntaxHighlighting}"
"shopt prompt.tab_stop=${toString cfg.settings.tabStop}" "shopt prompt.tab_stop=${toString cfg.settings.tabStop}"
] ])
cfg.settings.extraPostConfig cfg.settings.extraPostConfig
]; ];
}; };