Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-23 00:19:06 +00:00
parent 8ba6f7fc9e
commit 94c28849c9
382 changed files with 1183 additions and 1056 deletions

View File

@@ -23,12 +23,12 @@ source: https://github.com/tldr-pages/tldr.git
- Start with packages loaded from nixpkgs:
`nix-shell --packages {{package1 package2 ...}}`
`nix-shell {{[-p|--packages]}} {{package1 package2 ...}}`
- Start with packages loaded from specific nixpkgs revision:
`nix-shell --packages {{package1 package2 ...}} -I nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
`nix-shell {{[-p|--packages]}} {{package1 package2 ...}} {{[-I|--include]}} nixpkgs={{https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz}}`
- Evaluate rest of file in specific interpreter, for use in `#!-scripts` (see <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>):
`nix-shell -i {{interpreter}} --packages {{package1 package2 ...}}`
`nix-shell -i {{interpreter}} {{[-p|--packages]}} {{package1 package2 ...}}`