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.
- Host: GitHub
- URL: https://github.com/71/replay.nu
- Owner: 71
- License: isc
- Created: 2022-03-24T16:45:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-24T18:15:13.000Z (about 4 years ago)
- Last Synced: 2025-07-13T19:46:09.026Z (11 months ago)
- Topics: bash, nushell
- Language: Nu
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.