Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Prepend cd to directory names automatically, so you can cd into directories just by typing their name;

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



> > 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`


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'


-f overrides -i unfortunately.

(trash-cli sounds good, thanks for the tip)


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.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: