mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-14 11:57:55 +00:00
feat(zsh): initExtraLast option
Implement initExtraLast option to place commands at the bottom of .zshrc file. Signed-off-by: Leonard Sheng Sheng Lee <leonard.sheng.sheng.lee@gmail.com>
This commit is contained in:
parent
a9953635d7
commit
a7102403cd
1 changed files with 10 additions and 0 deletions
|
@ -469,6 +469,12 @@ in
|
|||
description = "Commands that should be added to top of {file}`.zshrc`.";
|
||||
};
|
||||
|
||||
initExtraLast = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
description = "Commands that should be added to bottom of {file}`.zshrc`.";
|
||||
};
|
||||
|
||||
envExtra = mkOption {
|
||||
default = "";
|
||||
type = types.lines;
|
||||
|
@ -738,6 +744,10 @@ in
|
|||
}
|
||||
'')
|
||||
|
||||
cfg.initExtraLast
|
||||
|
||||
# zprof must place last after everything else, since it
|
||||
# benchmarks the shell initialization.
|
||||
(optionalString cfg.zprof.enable
|
||||
''
|
||||
zprof
|
||||
|
|
Loading…
Reference in a new issue