add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,29 @@
# nix-shell
> 基于 Nix 表达式启动一个交互式 shell。
> 另见:`nix3 shell`。
> 更多信息:<https://nixos.org/manual/nix/stable/command-ref/nix-shell.html>。
- 从当前目录中的 `shell.nix``default.nix` 开始:
`nix-shell`
- 在非交互式 shell 中运行 shell 命令并退出:
`nix-shell --run "{{command}} {{argument1 argument2 ...}}"`
- 从当前目录中的 `default.nix` 开始:
`nix-shell {{default.nix}}`
- 从 nixpkgs 加载包:
`nix-shell --packages {{package1 package2 ...}}`
- 从特定的 nixpkgs 修订版加载包:
`nix-shell --packages {{package1 package2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
- 在特定解释器中评估文件的其余部分,以便在 `#!-scripts` 中使用(见 <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>
`nix-shell -i {{interpreter}} --packages {{package1 package2 ...}}`