Skip to content

Commit 5011c47

Browse files
committed
✨ feat: add autocompletion for poetry in zsh
1 parent 11c683c commit 5011c47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.devcontainer/on-create.sh

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ echo 'eval "$(register-python-argcomplete3 cz)"' >> ~/.zshrc
2020
echo "POETRY INSTALL"
2121
pipx install poetry
2222
poetry completions bash >> ~/.bash_completion
23+
mkdir $ZSH_CUSTOM/plugins/poetry
24+
poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry
25+
sed -i 's/plugins=(git)/plugins=(git poetry)/' ~/.zshrc
2326
poetry config virtualenvs.in-project true
2427
direnv allow .
2528
poetry env remove --all

0 commit comments

Comments
 (0)