Skip to content

Commit 635be58

Browse files
committed
Add cookbook reference to bash-env plugin
1 parent 8bbd7a8 commit 635be58

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/foreign_shell_scripts.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ This quickly gets tricky though, for example when the script is declaring a
6363
There are ways to implement some form of expansion too, but at some point it
6464
might make more sense to leave the parsing to the shell it was meant for.
6565

66+
## Bash Env Plugin
67+
68+
There is a third-party Nu plugin [bash-env](https://github.com/tesujimath/nu_plugin_bash_env)
69+
for importing environment variables from Bash format files and pipes.
70+
This plugin uses Bash itself to parse the environment definitions,
71+
and can therefore cope with arbitrarily complex Bash sources.
72+
6673
## Capturing the environment from a foreign shell script
6774

6875
A more complex approach is to run the script in the shell it is written for and

0 commit comments

Comments
 (0)