1
0
Fork 0
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:
Leonard Sheng Sheng Lee 2024-11-26 08:28:43 +01:00
parent a9953635d7
commit a7102403cd
No known key found for this signature in database
GPG key ID: B8BFC0DD57F42E03

View file

@ -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