r00k / dotfiles

config files for zsh, bash, completions, gem, git, irb, rails, vim
MIT License
751 stars 89 forks source link

Auto-escape spaces in file names #14

Open brucedsu opened 10 years ago

brucedsu commented 10 years ago

I love your RenameFile() function. However there are two problems. The first one is that some files have spaces in their names. The solution is to use escape() function to escape those spaces. The second one is that I created an alias for my rm command. I am using “rm -i” for rm, so I can not delete the origin file when I am using MacVim (I don’t know why it doesn’t prompt me to enter “y”). The solution is to add “-rf”.

r00k commented 10 years ago

Thanks for the pull! This is quite helpful.

Question: do you need the -r on the rm command? I don't see why you'd need to specify it for a single file.

grepsedawk commented 7 years ago

I would say most definitely do not have the -r for safety.