diff options
author | 2023-10-12 13:46:14 -0700 | |
---|---|---|
committer | 2023-10-12 14:12:53 -0700 | |
commit | beb746e5eaf7681212e9f6d72c782abe7789471d (patch) | |
tree | 5bbc1e7ffd08f7f1bdb3730eaeebd8d98c99cded | |
parent | 89faee2522c463f7d59bc4ef9f6146a83a9e5a8b (diff) | |
download | bun-beb746e5eaf7681212e9f6d72c782abe7789471d.tar.gz bun-beb746e5eaf7681212e9f6d72c782abe7789471d.tar.zst bun-beb746e5eaf7681212e9f6d72c782abe7789471d.zip |
Update installation.md
-rw-r--r-- | docs/installation.md | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/docs/installation.md b/docs/installation.md index 767f571e8..6aa51737a 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -85,36 +85,42 @@ $ bun --revision 1.x.y+b7982ac1318937560f38e0f8eb18f45eaa43480f ``` -f you've installed Bun but are seeing a `command not found` error, you may have to manually add the installation directory to your `PATH`. First, determine what shell you're using: +If you've installed Bun but are seeing a `command not found` error, you may have to manually add the installation directory (`~/.bun/bin`) to your `PATH`. + +{% details summary="How to add to your `PATH`" %} +First, determine what shell you're using: ```sh $ echo $SHELL /bin/zsh # or /bin/bash or /bin/fish ``` -Then add these lines to the appropriate file, save it, and open a new shell. +Then add these lines below to bottom of your shell's configuration file. {% codetabs %} -```bash#zsh -# ~/.zshrc +```bash#~/.zshrc +# add to ~/.zshrc export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" ``` -```bash#bash -# ~/.bashrc +```bash#~/.bashrc +# add to ~/.bashrc export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" ``` -```sh#fish -# ~/.config/fish/config.fish +```sh#~/.config/fish/config.fish +# add to ~/.config/fish/config.fish export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" ``` {% /codetabs %} +Save the file. You'll need to open a new shell/terminal window for the changes to take effect. + +{% /details %} ## Upgrading |