The python plugin of on-my-zsh looks like:
1 # Find python file
2 alias pyfind='find . -name "*.py"'
3
4 # Remove python compiled byte-code in either current directory or in a
5 # list of specified directories
6 function pyclean() {
7 ZSH_PYCLEAN_PLACES=${*:-'.'}
8 find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
9 find ${ZSH_PYCLEAN_PLACES} -type d -name "__pycache__" -delete
10 }
11
12 # Grep among .py files
13 alias pygrep='grep --include="*.py"'
Does it mean that this plugin is only benefit for some alias ? Is there any amazing advantage?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire