Skip to content

Automatic fallback to Junest for not found commands in the native Linux system

Rushab Shah edited this page Dec 12, 2018 · 3 revisions

Drop this in your shell's config:
For ZSH:

function command_not_found_handler(){
    junest -f -- $@ || echo "Command not found:" + $1
}

For BASH:

function command_not_found_handle(){
    junest -f -- $@ || echo "Command not found:" + $1
}

And now any commands that are not found on your native linux system, get tried inside of junest!