1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-24 13:21:57 +00:00
ohmyzsh/plugins/python
Michael 9785d24172 python: fix and extend pyclean (#7762)
Deleting `.mypy_cache` did not work, because the directories were not
empty.  They contain JSON files instead of compiled byte-code.

This extends the cleanup by also getting rid of `.pytest_cache`
directories.
2019-10-25 13:24:35 +02:00
..
python.plugin.zsh python: fix and extend pyclean (#7762) 2019-10-25 13:24:35 +02:00
README.md python: add README (#7191) 2018-10-02 23:51:14 +02:00

python plugin

The plugin adds several aliases for useful python commands.

To use it, add python to the plugins array of your zshrc file:

plugins=(... python)

Aliases

Command Description
pyfind Finds .py files recursively in the current directory
pyclean [dirs] Deletes byte-code and cache files from a list of directories or the current one
pygrep <text> Looks for text in .py files