From e2ff27da07f30c598c88e8e7552be0d126e2b4da Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Fri, 19 Feb 2016 04:00:36 -0600 Subject: [PATCH] Rename :x to :u, for 'use'. --- nix-repl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix-repl.cc b/nix-repl.cc index adf418697..a9a21ae76 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -340,7 +340,7 @@ bool NixRepl::processLine(string line) << " :r Reload all files\n" << " :s Build dependencies of derivation, then start nix-shell\n" << " :t Describe result of evaluation\n" - << " :x Build derivation, then start nix-shell\n"; + << " :u Build derivation, then start nix-shell\n"; } else if (command == ":a" || command == ":add") { @@ -364,7 +364,7 @@ bool NixRepl::processLine(string line) evalString(arg, v); std::cout << showType(v) << std::endl; - } else if (command == ":x") { + } else if (command == ":u") { Value v, f, result; evalString(arg, v); evalString("drv: (import {}).runCommand \"shell\" { buildInputs = [ drv ]; } \"\"", f);