mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 00:09:38 -05:00
POSIX compliant input path on any shell
This commit is contained in:
parent
1d84e2dc8e
commit
ffd9327761
@ -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
|
||||||
```
|
source ~/.${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
|
||||||
|
Loading…
Reference in New Issue
Block a user