1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-23 00:30:07 +00:00

zsh: update zsh initContent example to use lib.literalExpression (#6637)

Update the `initContent` option example in `zsh.nix` to use
`lib.literalExpression` for correctly display in documentation.

Signed-off-by: Qiming Chu <cchuqiming@gmail.com>
This commit is contained in:
Qiming Chu 2025-03-18 04:24:59 +08:00 committed by GitHub
parent 18e7d54899
commit b870fb2d62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -455,8 +455,10 @@ in
initContent = mkOption {
default = "";
type = types.lines;
example = lib.mkOrder 1000 ''
echo "Hello, initContent!"
example = lib.literalExpression ''
lib.mkOrder 1000 ''''
echo "Hello zsh initContent!"
'''';
'';
description = "Content to be added to {file}`.zshrc`. To specify the order, use `lib.mkOrder`.";
};