From aa7e75ee85db21e195c609aa5fc40c58349c7cb2 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Tue, 28 May 2019 18:59:17 -0400 Subject: [PATCH 1/3] docs: fix bash autocomplete instructions syntax --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abf37ab..afb5157 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,13 @@ Getting Started Add following to your `.bashrc` (or `.zshrc`) to enable autocomplete anytime you activate your shell. - `eval $(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)` + `eval "$(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)"` For other shell (eg. `zsh` or `fish`), use proper version of `source` (`source_zsh` and `source-fish` respectively) Alternatively, you can create activation script by: - `(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python > ~/paperspace_complete.sh` + `(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python) > ~/paperspace_complete.sh` More: https://click.palletsprojects.com/en/7.x/bashcomplete/ 4. Download your api key by executing the following: From 06188f697efd239b9e9801b40cf22bb2313c2948 Mon Sep 17 00:00:00 2001 From: BartoszCki Date: Wed, 29 May 2019 15:01:24 +0200 Subject: [PATCH 2/3] Fix autocomplete instructions --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index afb5157..2022ef6 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,11 @@ Getting Started 3. Enable autocomplete: Add following to your `.bashrc` (or `.zshrc`) to enable autocomplete anytime you activate your shell. + If paperspace-python was installed in a virtual environment, the following has to be added to the `activate` script: - `eval "$(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)"` - - For other shell (eg. `zsh` or `fish`), use proper version of `source` (`source_zsh` and `source-fish` respectively) - - Alternatively, you can create activation script by: + `eval "$(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python)"` + + Alternatively, you can create activation script by: `(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python) > ~/paperspace_complete.sh` From cffb7aa1692ea9a2d2c5ba3653fab7cb5abb06e5 Mon Sep 17 00:00:00 2001 From: BartoszCki Date: Wed, 29 May 2019 15:22:29 +0200 Subject: [PATCH 3/3] Fix autocomplete instructions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2022ef6..e593bba 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,8 @@ Getting Started Alternatively, you can create activation script by: `(_PAPERSPACE_PYTHON_COMPLETE=source paperspace-python) > ~/paperspace_complete.sh` + + and then add `. ~/paperspace_complete.sh` to your `.bashrc`, `.zshrc` or `activate` script. More: https://click.palletsprojects.com/en/7.x/bashcomplete/ 4. Download your api key by executing the following: