提交 1a4c1c15 编写于 作者: J James Hegedus

fix: revert to commands to precompute brew prefix on addition to shell config

上级 1b7b4da0
......@@ -206,10 +206,10 @@ compinit
If using **macOS Catalina or newer**, the default shell has changed to **ZSH**. Unless changing back to Bash, follow the ZSH instructions.
Add the following to `~/.bash_profile`:
Add `asdf.sh` to your `~/.bash_profile` with:
```shell
. $(brew --prefix asdf)/asdf.sh
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.bash_profile
```
?> Completions will need to be [configured as per Homebrew's instructions](https://docs.brew.sh/Shell-Completion#configuring-completions-in-bash) or with the following:
......@@ -220,20 +220,20 @@ echo -e "\n. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash" >> ~/.bash_p
#### --macOS,Fish,Homebrew--
Add the following to `~/.config/fish/config.fish`:
Add `asdf.fish` to your `~/.config/fish/config.fish` with:
```shell
source (brew --prefix asdf)/asdf.fish
echo -e "\nsource (brew --prefix asdf)/asdf.fish" >> ~/.config/fish/config.fish
```
?> Completions are [handled by Homebrew for the Fish shell](https://docs.brew.sh/Shell-Completion#configuring-completions-in-fish). Friendly!
#### --macOS,ZSH,Homebrew--
Add the following to `~/.zshrc`:
Add `asdf.sh` to your `~/.zshrc` with:
```shell
. $(brew --prefix asdf)/asdf.sh
echo -e "\n. $(brew --prefix asdf)/asdf.sh" >> ~/.zshrc
```
?> Completions will need to be [configured as per Homebrew's instructions](https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册