mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +01:00
zsh: add initExtraBeforeCompInit config option
The new initExtraBeforeCompInit option enables the user to inject commands in zshrc before compinit is executed.
This commit is contained in:
parent
8b759c24e6
commit
ed0e40dee8
1 changed files with 8 additions and 0 deletions
|
@ -215,6 +215,12 @@ in
|
|||
description = "Environment variables that will be set for zsh session.";
|
||||
};
|
||||
|
||||
initExtraBeforeCompInit = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
description = "Extra commands that should be added to <filename>.zshrc</filename> before compinit.";
|
||||
};
|
||||
|
||||
initExtra = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
|
@ -341,6 +347,8 @@ in
|
|||
|
||||
${localVarsStr}
|
||||
|
||||
${cfg.initExtraBeforeCompInit}
|
||||
|
||||
${concatStrings (map (plugin: ''
|
||||
path+="$HOME/${pluginsDir}/${plugin.name}"
|
||||
fpath+="$HOME/${pluginsDir}/${plugin.name}"
|
||||
|
|
Loading…
Reference in a new issue