Files
tldr/pages.zh/common/nix3-edit.md

12 lines
351 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# nix 编辑
> 在 $EDITOR 中打开 Nix 包的 Nix 表达式。
> 更多信息:<https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-edit.html>。
- 在你的 `$EDITOR` 中打开来自 nixpkgs 的包的 Nix 表达式源代码:
`nix edit {{nixpkgs#pkg}}`
- 将包的源代码转储到 `stdout`
`EDITOR=cat nix edit {{nixpkgs#pkg}}`