Skip to content

Commit

Permalink
fix(env): Use $HOME instead of ~ (getsentry#451)
Browse files Browse the repository at this point in the history
With the introduction of pyright in pre-commit, using ~ for the home directory
is causing problems with a Popen call. Switching to $HOME to get around this.
  • Loading branch information
Zylphrex authored Oct 15, 2021
1 parent 37370da commit 5dce9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/docs/environment/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ This works because the volta installer conveniently made changes to your shell i
startup script:

```shell {filename: ~/.bashrc} {tabTitle: Bash}
export VOLTA_HOME="~/.volta"
export VOLTA_HOME="$HOME/.volta"
grep --silent "$VOLTA_HOME/bin" <<< $PATH || export PATH="$VOLTA_HOME/bin:$PATH"
```

```shell {filename: ~/.zshrc} {tabTitle: Zsh}
export VOLTA_HOME="~/.volta"
export VOLTA_HOME="$HOME/.volta"
grep --silent "$VOLTA_HOME/bin" <<< $PATH || export PATH="$VOLTA_HOME/bin:$PATH"
```

Expand Down

0 comments on commit 5dce9b3

Please sign in to comment.