Hacker News new | ask | show | jobs
by renewiltord 1539 days ago
This is amusing but my filesystem has no spaces in it. It's still a pain in the ass from the command line to handle spaces and instead of `-print0` and all that shit I just ban spaces from my filesystem. `-` and `_` are sufficient as spacers.

I know zsh handles auto-complete well but I can `y-a-w` out of my `nvim` `:terminal` a lot easier.

1 comments

I like this approach. How do you enforce your ban? Is there a mount(8) option for that? Or do you simply avoid these filenames "by hand"? What happens if you untar an archive and it contains filenames with spaces?
Haha, I do not enforce the ban. You are correct. If I untar'd something I'd be sitting there with a space there and I'd look like a fool. In practice, most of these files are in my `~/Downloads` and I don't really keep them around there very much.