summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xinstall.sh15
2 files changed, 6 insertions, 11 deletions
diff --git a/README.md b/README.md
index 20475c8..74e0ac1 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Add plugin to your `.vimrc` using `vim-plug`:
Plug 'madox2/vim-ai', { 'do': './install.sh' }
```
-The plugin requires `python3` and `pip` to be installed.
+The plugin requires `python3` and `pip3` to be installed.
## Usage
diff --git a/install.sh b/install.sh
index f4d77f3..7b4e187 100755
--- a/install.sh
+++ b/install.sh
@@ -1,14 +1,9 @@
#!/bin/bash
-if [ -n "$(which pip3)" ]; then
- pip3 install openai
- exit 0
+if [ -z "$(which pip3)" ]; then
+ echo pip3 not found
+ exit 1
fi
-if [ -n "$(which pip)" ]; then
- pip install openai
- exit 0
-fi
-
-echo missing pip3 or pip
-exit 1
+echo installing deps using pip3
+pip3 install openai