{"id":14109383,"url":"https://github.com/hkbakke/bash-insulter","last_synced_at":"2025-08-01T08:31:48.165Z","repository":{"id":41128701,"uuid":"110981210","full_name":"hkbakke/bash-insulter","owner":"hkbakke","description":"Insults the user when typing wrong command","archived":false,"fork":false,"pushed_at":"2021-06-30T10:08:50.000Z","size":43,"stargazers_count":626,"open_issues_count":11,"forks_count":75,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-08-14T10:14:26.535Z","etag":null,"topics":["bash","insult-generator","wrong-command"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hkbakke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-16T14:27:27.000Z","updated_at":"2024-08-09T15:54:01.000Z","dependencies_parsed_at":"2022-07-13T19:10:28.186Z","dependency_job_id":null,"html_url":"https://github.com/hkbakke/bash-insulter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkbakke%2Fbash-insulter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkbakke%2Fbash-insulter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkbakke%2Fbash-insulter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hkbakke%2Fbash-insulter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hkbakke","download_url":"https://codeload.github.com/hkbakke/bash-insulter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228351770,"owners_count":17906552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","insult-generator","wrong-command"],"created_at":"2024-08-14T10:02:16.645Z","updated_at":"2024-12-05T18:31:06.019Z","avatar_url":"https://github.com/hkbakke.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# bash-insulter\nRandomly insults the user when typing wrong command.\n\nChange insults as needed :)\n\n```bash\nnoob@bender:~ $ sl\n\n  Y u no speak computer???\n\n-bash: sl: command not found\nnoob@bender:~ $ gti status\n\n  This is why nobody likes you.\n\n-bash: gti: command not found\nnoob@bender:~ $ sp aux\n\n  Go outside.\n\n-bash: sp: command not found\n```\n\n# Compatibility\n* Bash v4 and newer\n* Zsh\n\n# Installation\n\n    # Method 1 - know what you are doing\n    git clone https://github.com/hkbakke/bash-insulter.git bash-insulter\n    sudo cp bash-insulter/src/bash.command-not-found /etc/\n\n    # Method 2 - I don't care, insult me!\n    sudo wget -O /etc/bash.command-not-found https://raw.githubusercontent.com/hkbakke/bash-insulter/master/src/bash.command-not-found\n\nThen source the file automatically for new logins by adding the following to `/etc/bash.bashrc` or any of the other locations where you can configure your shell automatically during login:\n```\nif [ -f /etc/bash.command-not-found ]; then\n    . /etc/bash.command-not-found\nfi\n```\nLogin again and type some invalid commands for the effects to be visible.\n\nNote: You will have to add the script to `.zshrc` if you are using `zsh`\n\n# Configuration\nbash-insulter can be customized, or even be made polite and nice, by populating `CMD_NOT_FOUND_MSGS` or `CMD_NOT_FOUND_MSGS_APPEND` environment variables. The values should be arrays. `CMD_NOT_FOUND_MSGS` replaces the default messages, while `CMD_NOT_FOUND_MSGS_APPEND` appends more messages to the existing ones.\n\nIt is probably cleanest to source a file populating the environment variable as needed. In this example I create a file `/etc/bash.command-not-found-messages` with the following content:\n\n    CMD_NOT_FOUND_MSGS=(\n        \"You are so smart!\"\n        \"You look pretty today!\"\n        \"I don't know what to say\"\n    )\n    \nThen source this file before you source the script:\n```\nif [ -f /etc/bash.command-not-found-messages ]; then\n    . /etc/bash.command-not-found-messages\nfi\n\nif [ -f /etc/bash.command-not-found ]; then\n    . /etc/bash.command-not-found\nfi\n```\n\nThen logout and in again. The end result is that you will now use your messages instead of the default ones.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkbakke%2Fbash-insulter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkbakke%2Fbash-insulter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkbakke%2Fbash-insulter/lists"}