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:
parent
18e7d54899
commit
b870fb2d62
1 changed files with 4 additions and 2 deletions
|
@ -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`.";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue