Hacker News new | ask | show | jobs
by femto113 1440 days ago
Or embrace it... I don't seem to mistype ls often enough to care, but my ~/.alias has a few things of this sort

   # some common typos
   alias grpe grep
   alias gpre grep
   alias mroe more
   alias mreo more
   alias rmeo more
3 comments

and:

  alias cd..="cd .."
  alias ..="cd .."
Fish and Zsh can automatically cd into a dir if you type a path in.
the times I've typed .. dicker or focker, ducker ... or the combination of the last two .. bleh
zsh `setopt correct` is pretty helpful with these kinds of typos.
This sounded interesting but too magicky to me and I did a google search. Most of the top results are about how to disable or limit it. :)

I believe I experienced this kind of feature with fish and it was one of the reasons I didn't like it. (Most things cannot be user configured away in fish).

It works fine for me. I do have `correct_all` unset, which makes it only apply to the command and not the arguments.
I will check it out. I am sure it can be configured to work reasonably on zsh.