#zsh

How to disable auto correct in oh-my-zsh

oh-my-zsh is very handy and I’ve been using it for almost a year.

But I found the auto correct is kind of annoying and barely helped me. So I decided to turn if off!

Disable it globally

Add this unsetopt to your ~/.zshrc

source $ZSH/oh-my-zsh.sh

unsetopt correct_all

Disable it per command base

Say if you just want to disable it for git command, you can setup an alias.

alias git=’nocorrect heroku’

I didn’t test out this one :)

References:

Qihuan Piao

Qihuan Piao

Originally from China and now living in Tokyo, I started this blog to practice English. Over the years, writing helped me find my own voice and explore thoughts about identity, life, and ordinary things that catch my curiosity. I mostly write for myself, but I love it when something here connects with someone else.

Meanwhile, what I wrote in Japanese

Fruit Ninjia in Real Life and Flying Kittens

December 28, 2012

Meanwhile, what I wrote in Chinese

小悲伤之便当盒篇

December 18, 2012