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