Add clean_file_backslash function

This commit is contained in:
Kevin Cotugno 2024-12-18 06:13:47 -07:00
parent 2d6166a361
commit db31b0b08f

4
.zshrc
View File

@ -101,6 +101,10 @@ if [[ $(command -v fd) ]]; then
compdef _p p compdef _p p
fi 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 e='$EDITOR'
alias s="du -sh" alias s="du -sh"
alias sd="du -hd 1" alias sd="du -hd 1"