Created
August 31, 2012 07:55
-
-
Save danopia/3550035 to your computer and use it in GitHub Desktop.
Clippy at the Linux CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## Good old clippy | |
## | |
$the_cow = <<"EOC"; | |
$thoughts ___ | |
$thoughts / \\ | |
$thoughts / \\ | |
/ \\ | |
___ ___ | |
/___\\ /___\\ | |
\\*__/ \\*__/ | |
| | | |
| | | | | |
| | | | | |
| | | | | |
| \\ / | | |
| \\__/ | | |
\\ / | |
\\ / | |
\\____/ | |
EOC |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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