1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 16:11:06 +01:00

zsh: avoid IFD while sourcing prezto

This commit is contained in:
Thiago Kenji Okada 2025-05-14 00:33:51 +01:00 committed by Austin Horstman
parent 5f36563a5c
commit 7c1cefb983
2 changed files with 6 additions and 4 deletions

View file

@ -815,10 +815,7 @@ in
)) ))
(mkOrder 900 ( (mkOrder 900 (
(optionalString cfg.prezto.enable ( (lib.concatStrings (
builtins.readFile "${cfg.prezto.package}/share/zsh-prezto/runcoms/zshrc"
))
+ (lib.concatStrings (
map (plugin: '' map (plugin: ''
if [[ -f "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" ]]; then if [[ -f "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" ]]; then
source "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" source "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}"

View file

@ -586,6 +586,11 @@ in
''} ''}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';
programs.zsh.initContent = lib.mkOrder 850 ''
# Load prezto
source ${cfg.package}/share/zsh-prezto/runcoms/zshrc
'';
} }
] ]
); );