zsh: add initExtraFirst option
This commit is contained in:
parent
a3a0f1289a
commit
c6263347de
|
@ -302,6 +302,12 @@ in
|
||||||
description = "Extra commands that should be added to <filename>.zshrc</filename>.";
|
description = "Extra commands that should be added to <filename>.zshrc</filename>.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
initExtraFirst = mkOption {
|
||||||
|
default = "";
|
||||||
|
type = types.lines;
|
||||||
|
description = "Commands that should be added to top of <filename>.zshrc</filename>.";
|
||||||
|
};
|
||||||
|
|
||||||
envExtra = mkOption {
|
envExtra = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
|
@ -417,6 +423,8 @@ in
|
||||||
++ optional cfg.oh-my-zsh.enable oh-my-zsh;
|
++ optional cfg.oh-my-zsh.enable oh-my-zsh;
|
||||||
|
|
||||||
home.file."${relToDotDir ".zshrc"}".text = ''
|
home.file."${relToDotDir ".zshrc"}".text = ''
|
||||||
|
${cfg.initExtraFirst}
|
||||||
|
|
||||||
typeset -U path cdpath fpath manpath
|
typeset -U path cdpath fpath manpath
|
||||||
|
|
||||||
${optionalString (cfg.cdpath != []) ''
|
${optionalString (cfg.cdpath != []) ''
|
||||||
|
|
Loading…
Reference in a new issue