6b224a9e31
Lorri does not cleanly integrate with my corporate device, which cannot run NixOS. To expose dependencies to Emacs buffers, I will use nix-buffer.el, which reads its values from dir-locals.nix. To easily expose dependencies from my existing shell.nix files into dir-locals.nix, I wrote a Nix utility function. |
||
---|---|---|
.. | ||
.envrc | ||
default.nix | ||
dir-locals.nix | ||
main.go | ||
README.md | ||
shell.nix |
run
Simplify the commands you call to run scripts on the command line.
> run path/to/file.py
> run path/to/file.ts
How?
Define a run.json configuration mapping commands to filename extensions like so:
{
".ts": "npx ts-node $file",
".py": "python3 $file"
}
Then call run path/to/some/file.ts
on the command line, and npx ts-node file.ts
will run.
Installation
Install run
using Nix.
> nix-env -iA briefcase.run