diff options
Diffstat (limited to 'functions/renlow.fish')
| -rw-r--r-- | functions/renlow.fish | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/functions/renlow.fish b/functions/renlow.fish deleted file mode 100644 index 1581550..0000000 --- a/functions/renlow.fish +++ /dev/null @@ -1,16 +0,0 @@ -function renlow --description 'Rename all files and directories with lowercase characters' - -for file in (find . -type f) - set -l element (string split -r -m1 / $file) - mv $file $element[1]/(string lower $element[2]) -end - -set -f dirs (find . -type d) -for dir in $dirs[-1..1] # Rename directories in reverse order - set -l element (string split -r -m1 / $dir) - if not test -z $element[2] # Catch . - mv $dir $element[1]/(string lower $element[2]) - end -end - -end |
