Skip to content

v0.8.7

Compare
Choose a tag to compare
@ryuichiueda ryuichiueda released this 26 Oct 01:06
· 162 commits to main since this release

Supported command-not-found

example

ueda@uedax1:main🌵~/GIT/rusty_bash🍣 aaa
Command 'aaa' not found, did you mean:
  command 'ara' from deb python3-ara (1.5.8-1.1ubuntu1)
  command 'ava' from deb ava (5.3.1+dfsg+~cs46.3.10-3)
  command 'jaaa' from deb jaaa (0.9.2-1)
  command 'aha' from deb aha (0.5.1-3)
  command 'aa' from deb astronomical-almanac (5.6-7)
Try: sudo apt install <deb name>
sush: aaa: command not found

how to use

Please write the following code to .sushrc at your home directory.

command_not_found_handle() {
	/usr/lib/command-not-found -- "$1"   # change the path to the command-not-found path on your environment
}