mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-05 13:44:22 +00:00
18 lines
452 B
Plaintext
18 lines
452 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# nix edit
|
|
|
|
> Open the Nix expression of a Nix package in `$EDITOR`.
|
|
> More information: <https://nix.dev/manual/nix/stable/command-ref/new-cli/nix3-edit.html>.
|
|
|
|
- Open the source of the Nix expression of a package from nixpkgs in your `$EDITOR`:
|
|
|
|
`nix edit {{nixpkgs#pkg}}`
|
|
|
|
- Dump the source of a package to `stdout`:
|
|
|
|
`EDITOR=cat nix edit {{nixpkgs#pkg}}`
|