mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-24 09:06:17 +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:
parent
18e7d54899
commit
b870fb2d62
1 changed files with 4 additions and 2 deletions
|
@ -455,8 +455,10 @@ in
|
||||||
initContent = mkOption {
|
initContent = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
example = lib.mkOrder 1000 ''
|
example = lib.literalExpression ''
|
||||||
echo "Hello, initContent!"
|
lib.mkOrder 1000 ''''
|
||||||
|
echo "Hello zsh initContent!"
|
||||||
|
'''';
|
||||||
'';
|
'';
|
||||||
description = "Content to be added to {file}`.zshrc`. To specify the order, use `lib.mkOrder`.";
|
description = "Content to be added to {file}`.zshrc`. To specify the order, use `lib.mkOrder`.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue