Re:Show HN: Sensible Bash: An attempt at saner Bash defaults
by hornetblack on Wednesday March 02, 2016 @07:21PM
(#11214186)
> > Automatically correct spelling errors during tab-completion;
> I'm terrified to put this in my shell.
I had it in once (it's one the options in zsh setup)
Once I was cleaning my home directory:
rm -rf tec<Tab>
rm -rf IdeaProjects<Ret>
I'm a bit too quick to press enter after tab. So i deleted the wrong folder.I do still have it auto correct case. So `doc<Tab> -> Documents`
Re:Show HN: Sensible Bash: An attempt at saner Bash defaults
by alphapapa on Wednesday March 02, 2016 @07:30PM
(#11214222)
This is why I delete to trash, even from a terminal. I use the trash-cli package on Debian/Ubuntu.
Also:
alias rm 'rm -i'
Re:Show HN: Sensible Bash: An attempt at saner Bash defaults
by zurn on Wednesday March 02, 2016 @10:51PM
(#11214910)
-f overrides -i unfortunately.
(trash-cli sounds good, thanks for the tip)
Re:Show HN: Sensible Bash: An attempt at saner Bash defaults
by jimminy on Wednesday March 02, 2016 @02:21PM
(#11212264)
Prepending cd for directory names would be kind of bad for me.
I tend to create local scripts to initialize project environments using their root directory name. So the automatic prepending would make the action ambiguous as a command.
Re:Show HN: Sensible Bash: An attempt at saner Bash defaults
by hamidnazari on Wednesday March 02, 2016 @04:45PM
(#11213288)
That's the first thing I disable every time I set up oh-my-zsh on a new box. I think it should not be a default behaviour and should only be enabled if needed.
I'm pretty sure this is a solution to a problem I don't have today.
> Treat hyphens and underscores as equivalent;
> Automatically correct spelling errors during tab-completion;
I'm terrified to put this in my shell. Then again, it's not all-or-nothing:
> cherry-pick the options you like most ... everything is open for discussion