Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 647abaf

Browse files
Merge pull request #125 from Paperspace/fix-paren-and-quotes-autocomplete-readme-PS-10221
docs: fix bash autocomplete instructions syntax PS-10221
2 parents fd2f69d + cffb7aa commit 647abaf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ Getting Started
2020
3. Enable autocomplete:
2121

2222
Add following to your `.bashrc` (or `.zshrc`) to enable autocomplete anytime you activate your shell.
23+
If paperspace-python was installed in a virtual environment, the following has to be added to the `activate` script:
2324

24-
`eval "$(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)"`
25-
26-
For other shell (eg. `zsh` or `fish`), use proper version of `source` (`source_zsh` and `source-fish` respectively)
27-
28-
Alternatively, you can create activation script by:
25+
`eval "$(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)"`
26+
27+
Alternatively, you can create activation script by:
2928

30-
`_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python > ~/paperspace_complete.sh`
29+
`(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python) > ~/paperspace_complete.sh`
30+
31+
and then add `. ~/paperspace_complete.sh` to your `.bashrc`, `.zshrc` or `activate` script.
3132

3233
More: https://click.palletsprojects.com/en/7.x/bashcomplete/
3334
4. Download your api key by executing the following:

0 commit comments

Comments
 (0)