Zsh wants to autocorrect a command, with an _ before it

后端 未结 6 1468
终归单人心
终归单人心 2021-01-30 00:11

I just started using Zsh lately for some of the integrated support in the shell prompt for my Git status etc.

When I type in:

 ruby -v

6条回答
  •  情深已故
    2021-01-30 00:47

    I had the same problem even when the command is not installed.

    I can solve it using the CORRECT_IGNORE variable in my .zshrc

    # OPTs to enable
    setopt HASH_LIST_ALL
    setopt CORRECT
    # Zsh variable to determine what to ignore,
    # in this case everything starting with _ or . 
    CORRECT_IGNORE="[_|.]*"
    

    I hope it helps to you or anyone with this issue

提交回复
热议问题