oh-my-fish/plugins/python/pyclean.fish

13 lines
239 B
Fish
Raw Normal View History

2013-05-21 21:42:17 +00:00
# clean current directory recursively from any .pyc and .pyo files
function pyclean
set -l path2CLEAN
if set -q $argv
set path2CLEAN .
else
set path2CLEAN $argv
end
2013-05-21 21:42:17 +00:00
2013-05-22 16:17:01 +00:00
find $path2CLEAN -name "*.py[co]" -type f -delete
end