aboutsummaryrefslogtreecommitdiff
path: root/functions/renlow.fish
diff options
context:
space:
mode:
authorDeposite Pirate2026-02-28 11:05:06 +0100
committerDeposite Pirate2026-02-28 11:05:06 +0100
commit4b457e9c61fb7d2ee3fff2511dfba9bd3a94fb3e (patch)
treef8a37c3ed621e952325272a4b4b35791e39a59c9 /functions/renlow.fish
parentc695dec4e39811a2ed6321b7a95240c15c964cdc (diff)
More generic case tool
new file: functions/rencase.fish deleted: functions/renlow.fish
Diffstat (limited to 'functions/renlow.fish')
-rw-r--r--functions/renlow.fish16
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