Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function command_not_found_handler() {
new=`echo $* | ruby -pe 'sub(/[A-Z]/){" "+$&.downcase}'`
if [ "$*" != "$new" ]; then
echo "=> $new"
eval $new
return 0
fi
return 127
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment