New shell trick


A new trick for for your shell kung-foolery quiver. I use ZSH so the exact syntax won’t work for other shells. I use Maven to compile my projects, and ZSH is obsessive about trying to correct my ‘mvn’ command to ‘mv’. I get the options [No|Yes|Abort|Edit], well there needs to be a STFU option in my opinion. Well short of that you can use this little trick to shut ZSH up about a command its ignorant of.

Just set an alias in your .zshrc file like this:

alias mvn='nocorrect mvn'

, ,

Comments are closed.