Skip to content

Commit cdcc842

Browse files
authored
remove bash-env external command from docs (#2105)
1 parent 3356fe8 commit cdcc842

4 files changed

Lines changed: 0 additions & 46 deletions

File tree

cookbook/foreign_shell_scripts.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,6 @@ 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-
73-
::: warning
74-
Please note that the `bash-env` plugin is not supported by the core Nushell team.
75-
All issues and requests for support should be directed to its own
76-
[issue tracker](https://github.com/tesujimath/nu_plugin_bash_env/issues).
77-
:::
78-
7966
## Capturing the environment from a foreign shell script
8067

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

cookbook/ssh_agent.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ 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-
```nu
27-
^ssh-agent | bash-env | load-env
28-
```
29-
30-
::: warning
31-
Please note that the `bash-env` plugin is not supported by the core Nushell team.
32-
All issues and requests for support should be directed to its own
33-
[issue tracker](https://github.com/tesujimath/nu_plugin_bash_env/issues).
34-
:::
35-
3624
## Workarounds
3725

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

zh-CN/cookbook/foreign_shell_scripts.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ print $"($env.GREETING) ($env.FROM)" # "Hello from bash"
5050

5151
也有方法实现某种形式的扩展,但在某些时候,将其解析留给它原本为之设计的 shell 可能更有意义。
5252

53-
## Bash Env 插件
54-
55-
有一个第三方 Nu 插件 [bash-env](https://github.com/tesujimath/nu_plugin_bash_env),用于从 Bash 格式的文件和管道导入环境变量。
56-
该插件使用 Bash 本身来解析环境定义,因此可以处理任意复杂的 Bash 源。
57-
58-
::: warning
59-
请注意,`bash-env` 插件不受核心 Nushell 团队支持。
60-
所有问题和支持请求应直接发送到其自己的 [问题跟踪器](https://github.com/tesujimath/nu_plugin_bash_env/issues)
61-
:::
62-
6353
## 从外部 shell 脚本捕获环境
6454

6555
更复杂的方法是在为其编写的 shell 中运行脚本,然后进行一些黑客操作来捕获脚本的变量。

zh-CN/cookbook/ssh_agent.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,6 @@ title: ssh-agent
2121
请参阅解决方法。
2222
:::
2323

24-
或者,使用第三方 Nu 插件 [bash-env](https://github.com/tesujimath/nu_plugin_bash_env),如下所示。
25-
26-
```nu
27-
^ssh-agent | bash-env | load-env
28-
```
29-
30-
::: warning
31-
请注意,`bash-env` 插件不受核心 Nushell 团队支持。
32-
所有问题和支持请求应直接发送到他们团队自己的 [问题跟踪器](https://github.com/tesujimath/nu_plugin_bash_env/issues)
33-
:::
34-
3524
## 解决方法
3625

3726
你可以通过检查是否已经有 ssh-agent 在你的用户上运行来解决此行为,如果没有则启动一个:

0 commit comments

Comments
 (0)