mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-23 21:32:18 +08:00
Closes #95: defining local variable and fixing args check
This commit is contained in:
parent
ef24766b0e
commit
04011838ff
|
@ -1,10 +1,12 @@
|
|||
# clean current directory recursively from any .pyc and .pyo files
|
||||
function pyclean
|
||||
if test -n $argv
|
||||
set path2CLEAN $argv
|
||||
else
|
||||
set -l path2CLEAN
|
||||
|
||||
if set -q $argv
|
||||
set path2CLEAN .
|
||||
else
|
||||
set path2CLEAN $argv
|
||||
end
|
||||
|
||||
find $path2CLEAN -name "*.py[co]" -type f -delete
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user