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:
parent
5f36563a5c
commit
7c1cefb983
2 changed files with 6 additions and 4 deletions
|
|
@ -815,10 +815,7 @@ in
|
|||
))
|
||||
|
||||
(mkOrder 900 (
|
||||
(optionalString cfg.prezto.enable (
|
||||
builtins.readFile "${cfg.prezto.package}/share/zsh-prezto/runcoms/zshrc"
|
||||
))
|
||||
+ (lib.concatStrings (
|
||||
(lib.concatStrings (
|
||||
map (plugin: ''
|
||||
if [[ -f "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}" ]]; then
|
||||
source "$HOME/${pluginsDir}/${plugin.name}/${plugin.file}"
|
||||
|
|
|
|||
|
|
@ -586,6 +586,11 @@ in
|
|||
''}
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
|
||||
programs.zsh.initContent = lib.mkOrder 850 ''
|
||||
# Load prezto
|
||||
source ${cfg.package}/share/zsh-prezto/runcoms/zshrc
|
||||
'';
|
||||
}
|
||||
]
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue