From 875f3ac905e93e3a4fa1ca6bedbd56f8bfefc1b6 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 26 Jan 2020 23:02:28 +0100 Subject: pkgs/profpatsch/execline: add e --- pkgs/profpatsch/execline/e.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkgs/profpatsch/execline/e.nix (limited to 'pkgs/profpatsch/execline') diff --git a/pkgs/profpatsch/execline/e.nix b/pkgs/profpatsch/execline/e.nix new file mode 100644 index 00000000..f5e44b66 --- /dev/null +++ b/pkgs/profpatsch/execline/e.nix @@ -0,0 +1,23 @@ +{ writeExecline, getBins, pkgs }: +let + + bins = getBins pkgs.rlwrap [ "rlwrap" ] + // getBins pkgs.s6-portable-utils [ { use = "s6-cat"; as = "cat"; } ] + // getBins pkgs.execline [ "execlineb" ]; + + # minimal execline shell + e = writeExecline "e" {} [ + "pipeline" [ + bins.rlwrap + "--substitute-prompt" "e> " + "--remember" + "--quote-characters" "\"" + "--complete-filenames" + bins.cat + ] + "forstdin" "cmd" + "importas" "cmd" "cmd" + bins.execlineb "-Pc" "$cmd" + ]; + +in { inherit e; } -- cgit 1.4.1