Merge pull request #1432 from nyxnor/cli-shell-instructions

POSIX compliant input path on any shell
This commit is contained in:
Micah Lee 2021-12-04 20:31:25 -08:00 committed by GitHub
commit 20c291161e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,28 +59,13 @@ pip install --user onionshare-cli
#### Set path #### 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 ```sh
echo $SHELL printf "PATH=\$PATH:~/.local/bin\n" >> ~/.${SHELL##*/}rc
``` . ~/.${SHELL##*/}rc
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
``` ```
#### Usage #### Usage