diff --git a/docs/pt-br/guide/getting-started.md b/docs/pt-br/guide/getting-started.md index 69d902b5d..9ad55b542 100644 --- a/docs/pt-br/guide/getting-started.md +++ b/docs/pt-br/guide/getting-started.md @@ -262,6 +262,39 @@ Adicione a seguinte linha ao seu `~/.zshrc`: . /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 Adicione a seguinte linha ao seu `~/.profile`: diff --git a/docs/zh-hans/guide/getting-started.md b/docs/zh-hans/guide/getting-started.md index f77fbb603..fdf70f420 100644 --- a/docs/zh-hans/guide/getting-started.md +++ b/docs/zh-hans/guide/getting-started.md @@ -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)。 ::: +::: 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 在 `~/.profile` 文件中加入以下内容: