mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-26 18:31:07 +08:00
13 lines
239 B
Fish
13 lines
239 B
Fish
# 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
|
|
|
|
find $path2CLEAN -name "*.py[co]" -type f -delete
|
|
end
|