A structured-data shell in Gleam, inspired by Nushell
413 B
16 lines
1{ pkgs, ... }:
2
3{
4 packages = with pkgs; [
5 gleam
6 beamPackages.erlang
7 rebar3
8 ];
9
10 enterShell = ''
11 # +Bc: Ctrl+C cancels the line instead of the Erlang BREAK menu (abort).
12 # gleshell also re-execs with +Bc if this is unset; exporting avoids the hop.
13 export ERL_AFLAGS="+Bc ''${ERL_AFLAGS:-}"
14 echo "gleshell devenv — gleam run / gleam test / gleam run -- -c 'ls | first 3'"
15 '';
16}