Skip to content

Instantly share code, notes, and snippets.

@Raimondi
Forked from danopia/.bashrc
Last active August 29, 2015 14:07
Show Gist options
  • Save Raimondi/e1db9a30589639685ee8 to your computer and use it in GitHub Desktop.
Save Raimondi/e1db9a30589639685ee8 to your computer and use it in GitHub Desktop.
Use clippy for shell errors.
function command_not_found_handle {
{echo "It looks like you're trying to run a UNIX command.";echo "Would you like some help with that?"; echo; /usr/lib/command-not-found $1 2>&1|fold -sw 55}|cowsay -f$HOME/.clippy -n
}
##
## Good old clippy
##
$the_cow = <<"EOC";
$thoughts ___
$thoughts / \\
$thoughts / \\
/ \\
___ ___
/___\\ /___\\
\\*__/ \\*__/
| |
| | | |
| | | |
| | | |
| \\ / |
| \\__/ |
\\ /
\\ /
\\____/
EOC
function command_not_found_handler {
{echo "It looks like you're trying to run a UNIX command.";echo "Would you like some help with that?"; echo; /usr/lib/command-not-found $1 2>&1|fold -sw 55}|cowsay -f$HOME/.clippy -n
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment