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

10 lines
253 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
if test -n $argv
set path2CLEAN $argv
else
set path2CLEAN .
end
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
end