mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-24 01:22:10 +02:00

* pages/*: update links and more info link script Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * cleanup: reformat code * ax-webapp: fix link * curl: fix false positive Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
28 lines
1 KiB
Markdown
28 lines
1 KiB
Markdown
# nix-shell
|
|
|
|
> Startet eine interaktive Shell, die auf einem Nix-Ausdruck basiert.
|
|
> Weitere Informationen: <https://nixos.org/manual/nix/stable/command-ref/nix-shell.html>.
|
|
|
|
- Starte mit Nix-Ausdruck in `shell.nix` oder `default.nix` im aktuellen Verzeichnis:
|
|
|
|
`nix-shell`
|
|
|
|
- Führe Shell-Befehl in nicht-interaktiver Shell aus und beende:
|
|
|
|
`nix-shell --run "{{befehl}} {{argument1 argument2 ...}}"`
|
|
|
|
- Starte mit Ausdruck in `default.nix` im aktuellen Verzeichnis:
|
|
|
|
`nix-shell {{default.nix}}`
|
|
|
|
- Starte mit aus nixpkgs geladenen Paketen:
|
|
|
|
`nix-shell --packages {{paket_name_1 paket_name_2 ...}}`
|
|
|
|
- Starte mit Paketen, die aus einer bestimmten Nixpkgs-Revision geladen wurden:
|
|
|
|
`nix-shell --packages {{paket_name_1 paket_name_2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
|
|
|
|
- Führe den Rest der Datei mit einem bestimmten Interpreter aus, zur Verwendung in `#!-scripts` (siehe <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>):
|
|
|
|
`nix-shell -i {{interpreter}} --packages {{paket_name_1 paket_name_2 ...}}`
|