about summary refs log tree commit diff
path: root/pkgs/profpatsch/execline
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-01-26 23:02:28 +0100
committerProfpatsch <mail@profpatsch.de>2020-01-26 23:02:28 +0100
commit875f3ac905e93e3a4fa1ca6bedbd56f8bfefc1b6 (patch)
treec0ba210696a877b588bc564811049c3c2a997ea0 /pkgs/profpatsch/execline
parente8d7cb8c2c5feed0157cace50b3fc5bebe9755c4 (diff)
pkgs/profpatsch/execline: add e
Diffstat (limited to 'pkgs/profpatsch/execline')
-rw-r--r--pkgs/profpatsch/execline/e.nix23
1 files changed, 23 insertions, 0 deletions
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; }