Skip to content

Commit 3c807bc

Browse files
committed
Also for ssh-agent
1 parent 635be58 commit 3c807bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/ssh_agent.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Adding this to your `env.nu` will however start a new ssh-agent process every ti
2121
See the workarounds.
2222
:::
2323

24+
Alternatively, use the third-party Nu plugin [bash-env](https://github.com/tesujimath/nu_plugin_bash_env) as follows.
25+
26+
```nushell
27+
^ssh-agent | bash-env | load-env
28+
```
29+
2430
## Workarounds
2531

2632
You can work around this behavior by checking if a ssh-agent is already running on your user, and start one if none is:

0 commit comments

Comments
 (0)