An open API service indexing awesome lists of open source software.

https://github.com/71/replay.nu

Run bash commands and keep their environment in Nushell.
https://github.com/71/replay.nu

bash nushell

Last synced: 11 months ago
JSON representation

Run bash commands and keep their environment in Nushell.

Awesome Lists containing this project

README

          

replay.nu
=========

Run a command in `bash` from [`nu`](https://github.com/nushell/nushell#readme)
and keep its environment. Inspired by [`replay.fish`](
https://github.com/jorgebucaran/replay.fish).

```nu
> use ./replay.nu [replay]
> 'SSH_AGENT_PID' in $env
false
> replay (ssh-agent)
Agent pid 19159
> 'SSH_AGENT_PID' in $env
true
```

## Caveats
- `replay` cannot receive data from `stdin` or be piped to another command.