python.plugin.zsh 339 B

123456789101112
  1. # Find python file
  2. alias pyfind='find . -name "*.py"'
  3. # Remove python compiled byte-code in either current directory or in a
  4. # list of specified directories
  5. function pyclean() {
  6. ZSH_PYCLEAN_PLACES=${*:-'.'}
  7. find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
  8. }
  9. # Grep among .py files
  10. alias pygrep='grep --include="*.py"'