Skip to content

Commit

Permalink
Add more logging around the bashCompletion option
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirks committed May 31, 2024
1 parent 8003ad0 commit b8a9318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rye/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Rye",
"version": "1.1.1",
"version": "1.1.2",
"id": "rye",
"description": "A Hassle-Free Python Experience",
"installsAfter": [
Expand Down
5 changes: 4 additions & 1 deletion src/rye/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ echo "Activating feature 'rye'"
# https://rye.astral.sh/guide/installation/#customized-installation
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash

if [ "$BASHCOMPLETION" == "true" ]; then
if [ "$BASHCOMPLETION" = "true" ]; then
echo "Activating bash completion for 'rye'"
# https://rye.astral.sh/guide/installation/#shell-completion
rye self completion > /etc/bash_completion.d/rye
else
echo "Skipping setting up bash completion for 'rye'"
echo "The value of BASHCOMPLETION is: $BASHCOMPLETION"
fi

0 comments on commit b8a9318

Please sign in to comment.