oh-my-fish/plugins/python/pyclean.fish
2013-05-22 12:17:01 -04:00

10 lines
218 B
Fish

# 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 "*.py[co]" -type f -delete
end