From db31b0b08ff26ed1c5be15a5c7eecf98edff7131 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Wed, 18 Dec 2024 06:13:47 -0700 Subject: [PATCH] Add clean_file_backslash function --- .zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zshrc b/.zshrc index c7286a4..4862be0 100644 --- a/.zshrc +++ b/.zshrc @@ -101,6 +101,10 @@ if [[ $(command -v fd) ]]; then compdef _p p fi +function clean_file_backslash { + for i in *; do new=${i//\\/\/}; newd=$(dirname "$new"); mkdir -p "$newd"; mv "$i" "$new"; done +} + alias e='$EDITOR' alias s="du -sh" alias sd="du -hd 1"