From 3bbf5558e00e816fae0a78ff54249646ea1bac4e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 19 Jul 2021 18:08:36 +0200 Subject: [PATCH] nix repl: Update :edit help text It supports functions as well. Also change `package` to `derivation` because it operates at the language level and does not open the derivation (which would be useful but not nearly as much). --- src/nix/repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/repl.cc b/src/nix/repl.cc index 5d3dbbcd9..07bbd461f 100644 --- a/src/nix/repl.cc +++ b/src/nix/repl.cc @@ -412,7 +412,7 @@ bool NixRepl::processLine(string line) << " = Bind expression to variable\n" << " :a Add attributes from resulting set to scope\n" << " :b Build derivation\n" - << " :e Open the derivation in $EDITOR\n" + << " :e Open package or function in $EDITOR\n" << " :i Build derivation, then install result into current profile\n" << " :l Load Nix expression and add it to scope\n" << " :p Evaluate and print expression recursively\n"