• [^] # Re: Command not found

    Posté par . En réponse au journal S'amuser avec sl (si si). Évalué à 4. Dernière modification le 05 juin 2015 à 14:34.

    Il y a des handlers dans bash et autres shell pour appeller une function quand la commande n'existe pas.

    command_not_found_handle() {
    [ -x /usr/bin/sl ] && /usr/bin/sl
    }
    Ceci devrait le faire dans ton .bashrc . Non tester.