README.md: HNix REPL: rephrase

This commit is contained in:
Anton-Latukha 2020-09-30 20:41:46 +03:00 committed by Anton Latukha
parent 7abc3c6ece
commit 908bd0c287
1 changed files with 3 additions and 2 deletions

View File

@ -199,15 +199,16 @@ For simplicity alias the command in your shell.
## Using the HNix REPL
To enter in:
Enter in:
```
hnix --repl
```
To evaluate an expression and make it available in the REPL as the `input` variable use:
Evaluate an expression:
```
hnix --eval -E '(import <nixpkgs> {}).pkgs.hello' --repl
```
This also binds the evaluated expression result to the `input` variable, so that variable can be inspected.
Use the `:help` command for a list of all available REPL commands.