blob: b065cc337693107e8ca3a01a1d7608f22e4d8c41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ 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"
"forstdin" "-d\n" "cmd"
"importas" "cmd" "cmd"
bins.execlineb "-Pc" "$cmd"
];
in { inherit e; }
|