darvid / zsh-poetry

🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
MIT License
73 stars 14 forks source link

Update poetry.zsh #5

Open mathieulallier807 opened 4 years ago

noymer commented 3 years ago

Or update README to default: -1

killjoy1221 commented 3 years ago

:- is special in bash/zsh variable expansion, so the current code works fine. If you omit, the -, your results may vary.

Using numeric character will make an empty string. Using a alphabetic character will cause a syntax error (zsh: unrecognized modifier).

If you use := instead of :-, it will actually set the variable if it isn't set already.