3

When I use bash in ubuntu and I type aa wrong command, it can guess for me, which correct common I could use:

bash:

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

oh-my-zsh:

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

Is there any settings that can enable this feature?

3kstc
  • 4,616
  • 15
  • 33
  • 49
How Chen
  • 255
  • 1
  • 4
  • 8

1 Answers1

3

Enable command-not-found plugin from oh-my-zsh

Refer to https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins

GMaster
  • 5,992
  • 3
  • 28
  • 32