aboutsummaryrefslogtreecommitdiff
path: root/cli/README.md
diff options
context:
space:
mode:
authornyxnor <nyxnor@protonmail.com>2021-09-11 08:10:37 +0200
committernyxnor <nyxnor@protonmail.com>2021-09-11 08:10:37 +0200
commitffd93277615ec383ef09fe38299098fc0b34e29f (patch)
treea4051c55066b2eb1b762b56e51925adfd05c93dc /cli/README.md
parent1d84e2dc8eef5b16089e50a80863287b1db32462 (diff)
downloadonionshare-ffd93277615ec383ef09fe38299098fc0b34e29f.tar.gz
onionshare-ffd93277615ec383ef09fe38299098fc0b34e29f.zip
POSIX compliant input path on any shell
Diffstat (limited to 'cli/README.md')
-rw-r--r--cli/README.md23
1 files changed, 4 insertions, 19 deletions
diff --git a/cli/README.md b/cli/README.md
index 00c175a7..a72bf348 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -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