blob: 657f41ce5c017fc60590e94f92f81895a0bf3802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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" {} [
bins.rlwrap
"--substitute-prompt" "e> "
"--remember"
"--quote-characters" "\""
"--complete-filenames"
"pipeline" [
bins.cat
]
"forstdin" "-d\n" "cmd"
"importas" "cmd" "cmd"
bins.execlineb "-Pc" "$cmd"
];
in { inherit e; }
|