mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-24 19:29:40 +01:00
zsh: refactor zsh configuration for better order control over .zshrc (#6479)
* zsh: add initContent option for custom .zshrc content insertion - Users can add content anywhere by using `lib.mkOrder`, `lib.mkBefore` and `lib.mkAfter` custom configurations. - Add test cases to verify the insertion of content before and after existing configurations in `.zshrc`. consolidate zshrc content tests into a single priorities test
This commit is contained in:
parent
1878091234
commit
7832b5aa95
4 changed files with 177 additions and 117 deletions
|
|
@ -2129,6 +2129,17 @@ in {
|
|||
Cohere, Groq).
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
time = "2025-03-11T02:34:43+00:00";
|
||||
condition = config.programs.zsh.enable;
|
||||
message = ''
|
||||
A new module is available: 'programs.zsh.initContent'.
|
||||
|
||||
initContent option allows you to set the content of the zshrc file,
|
||||
you can use `lib.mkOrder` to specify the order of the content you want to insert.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue