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 (
|
(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}"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue