Skip to content

Instantly share code, notes, and snippets.

@danopia
Created August 31, 2012 07:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danopia/3550035 to your computer and use it in GitHub Desktop.
Save danopia/3550035 to your computer and use it in GitHub Desktop.
Clippy at the Linux CLI
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