docs: Add Nushell installation instructions for all languages (#1519)

This commit is contained in:
Edwin Kofler 2023-03-26 17:25:00 -07:00 committed by GitHub
parent 86477ee8de
commit 6a6c539f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 66 additions and 0 deletions

View File

@ -262,6 +262,39 @@ Adicione a seguinte linha ao seu `~/.zshrc`:
. /opt/asdf-vm/asdf.sh . /opt/asdf-vm/asdf.sh
``` ```
::: details Nushell & Git
Adicione `asdf.nu` ao seu `~/.config/nushell/config.nu` através do comando:
```shell
"\nlet-env ASDF_NU_DIR = ($env.HOME | path join '.asdf')\n source " + ($env.HOME | path join '.asdf/asdf.nu') | save --append $nu.config-path
```
Ao concluir atualizará automaticamente
:::
::: details Nushell & Homebrew
Adicione `asdf.nu` ao seu `~/.config/nushell/config.nu` através do comando:
```shell:no-line-numbers
"\nlet-env ASDF_NU_DIR = (brew --prefix asdf | str trim | into string | path join 'libexec')\n source " + (brew --prefix asdf | into string | path join 'libexec/asdf.nu') | save --append $nu.config-path
```
Ao concluir atualizará automaticamente
:::
::: details Nushell & Pacman
Adicione `asdf.nu` ao seu `~/.config/nushell/config.nu` através do comando:
```shell
"\nlet-env ASDF_NU_DIR = '/opt/asdf-vm/'\n source /opt/asdf-vm/asdf.nu" | save --append $nu.config-path
```
Ao concluir atualizará automaticamente
:::
::: details POSIX Shell & Git ::: details POSIX Shell & Git
Adicione a seguinte linha ao seu `~/.profile`: Adicione a seguinte linha ao seu `~/.profile`:

View File

@ -263,6 +263,39 @@ echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
补全功能会被放在一个对 ZSH 很友好的位置,但是 [ZSH 必须使用自动补全完成配置](https://wiki.archlinux.org/index.php/zsh#Command_completion)。 补全功能会被放在一个对 ZSH 很友好的位置,但是 [ZSH 必须使用自动补全完成配置](https://wiki.archlinux.org/index.php/zsh#Command_completion)。
::: :::
::: details Nushell & Git
使用以下命令将 `asdf.nu` 加入到 `~/.config/nushell/config.nu` 文件中:
```shell
"\nlet-env ASDF_NU_DIR = ($env.HOME | path join '.asdf')\n source " + ($env.HOME | path join '.asdf/asdf.nu') | save --append $nu.config-path
```
补全功能将会自动配置。
:::
::: details Nushell & Homebrew
使用以下命令将 `asdf.nu` 加入到 `~/.config/nushell/config.nu` 文件中:
```shell:no-line-numbers
"\nlet-env ASDF_NU_DIR = (brew --prefix asdf | str trim | into string | path join 'libexec')\n source " + (brew --prefix asdf | into string | path join 'libexec/asdf.nu') | save --append $nu.config-path
```
补全功能将会自动配置。
:::
::: details Nushell & Pacman
使用以下命令将 `asdf.nu` 加入到 `~/.config/nushell/config.nu` 文件中:
```shell
"\nlet-env ASDF_NU_DIR = '/opt/asdf-vm/'\n source /opt/asdf-vm/asdf.nu" | save --append $nu.config-path
```
补全功能将会自动配置。
:::
::: details POSIX Shell & Git ::: details POSIX Shell & Git
`~/.profile` 文件中加入以下内容: `~/.profile` 文件中加入以下内容: