mirror of
https://github.com/nix-community/home-manager
synced 2024-12-28 20:59:47 +01:00
zsh: add initExtraFirst option
This commit is contained in:
parent
a3a0f1289a
commit
c6263347de
1 changed files with 8 additions and 0 deletions
|
@ -302,6 +302,12 @@ in
|
|||
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 {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
|
@ -417,6 +423,8 @@ in
|
|||
++ optional cfg.oh-my-zsh.enable oh-my-zsh;
|
||||
|
||||
home.file."${relToDotDir ".zshrc"}".text = ''
|
||||
${cfg.initExtraFirst}
|
||||
|
||||
typeset -U path cdpath fpath manpath
|
||||
|
||||
${optionalString (cfg.cdpath != []) ''
|
||||
|
|
Loading…
Reference in a new issue