POSIX compliant input path on any shell

This commit is contained in:
nyxnor 2021-09-11 08:10:37 +02:00
parent 1d84e2dc8e
commit ffd9327761

View File

@ -59,28 +59,13 @@ pip install --user onionshare-cli
#### Set path
When you install programs with pip and use the --user flag, it installs them into ~/.local/bin, which isn't in your path by default. To add ~/.local/bin to your path automatically for the next time you reopen the terminal or source your shell configuration file, do the following:
When you install programs with pip and use the `--user` flag, it installs them into *~/.local/bin*, which isn't in your path by default. To add *~/.local/bin* to your path automatically for the next time you reopen the terminal or source your shell configuration file, do the following:
First, discover what shell you are using:
Apply the path to your shell file:
```sh
echo $SHELL
```
Then apply the path to your shell file:
bash:
```sh
echo "PATH=\$PATH:~/.local/bin" >> ~/.bashrc
source ~/.bashrc
```
zsh:
```sh
echo "PATH=\$PATH:~/.local/bin" >> ~/.zshrc
source ~/.zshrc
printf "PATH=\$PATH:~/.local/bin\n" >> ~/.${SHELL##*/}rc
source ~/.${SHELL##*/}rc
```
#### Usage