From afa284f91ee5f2ef0758d40a5ffe4750de3f7ec1 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 20 Aug 2023 22:58:50 -0500 Subject: [PATCH] feat(zsh): add strip blank function --- dots/.config/zsh/config/profile/profile/functions.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dots/.config/zsh/config/profile/profile/functions.zsh b/dots/.config/zsh/config/profile/profile/functions.zsh index 02788826..c40aa2dd 100644 --- a/dots/.config/zsh/config/profile/profile/functions.zsh +++ b/dots/.config/zsh/config/profile/profile/functions.zsh @@ -166,3 +166,9 @@ Unzip () { printf "\n" done } + +File-Strip-Blank() { + for file in "${*[@]}"; do + mv "${file}" "${file//[[:blank:]]/-}" + done +}