Skip to content

murku/omz_poetry_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Poetry plugin

This is my personal opinionated plugin for Oh My ZSH! that adds aliases for my most freqently used poetry commands.

Installation

  • copy the poetry.plugin.zsh file to your $ZSH_CUSTOM/plugins/poetry folder
mkdir $ZSH_CUSTOM/plugins/poetry
cp poetry.plugin.zsh $ZSH_CUSTOM/plugins/poetry
  • add poetry to the plugins array in your zshrc file:
plugins=(... poetry)
  • Reload with omz reload
  • (Optional) Enable tab completion for poetry (read poetry doc)

Aliases

Alias Command Description
poe poetry Poetry command
poi poetry install Install dependencies
por poetry run Run command in Poetry environment: por <command>
pot poetry run pytest -s Run pytest with output capturing disabled
poad poetry add Add a dependency: poad <package>
poadd poetry add --dev Add a dev dependency: poadd <package>
porm poetry remove Remove a dependency: porm <package>
mkserve poetry run mkdocs serve Run MkDocs development server

More information about poetry commands.

About

Oh My Zsh! plugin for python poetry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages