oh-my-zsh 無法猜測正確的指令

oh-my-zsh 無法猜測正確的指令

當我在 ubuntu 中使用 bash 並輸入錯誤的命令時,它可以為我猜測我可以使用哪個正確的常見命令:

重擊:

haochen@ubuntu-dd:~$ aptget
No command 'aptget' found, did you mean:
 Command 'apt-get' from package 'apt' (main)

哦我的zsh:

# haochen @ ubuntu-dd in ~ [9:13:14] C:100
$ aptget
zsh: command not found: aptget

有什麼設定可以啟用此功能嗎?

答案1

啟用command-not-found插件從oh-my-zsh

參考https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins

相關內容