Skip to content

Commit 17b50d9

Browse files
Add autocompletions and a nicer installation URL (#185)
Closes: #172 Adds support for autocompletions and a nicer looking URL for the installation script.
1 parent 01fb03a commit 17b50d9

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you are using Linux (x86_64, ARM64), macOS (ARM64), or WSL on Windows, the re
1010
To do so, run:
1111

1212
```shell
13-
. <(curl -sSfL https://raw.githubusercontent.com/Jelly-RDF/cli/main/install.sh)
13+
. <(curl -sSfL https://w3id.org/jelly/setup-cli.sh)
1414
jelly-cli
1515
```
1616

install.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,5 @@ else
8383
exit 1
8484
fi
8585

86-
# Check if zsh or bash is being used and source the appropriate file
87-
if expr "$SHELL" : '.*zsh' >/dev/null; then
88-
echo "Run source ""$HOME/.zshrc"" or restart your terminal to permanently link the jelly-cli command."
89-
elif expr "$SHELL" : '.*bash' >/dev/null; then
90-
echo "Run source ""$HOME/.bashrc"" or restart your terminal to permanently link the jelly-cli command."
91-
fi
92-
93-
86+
jelly-cli completions install > /dev/null
87+
eval "$(jelly-cli completions install --env)"

0 commit comments

Comments
 (0)