{"id":20050377,"url":"https://github.com/watzon/ohshit","last_synced_at":"2026-04-19T19:33:33.541Z","repository":{"id":91428235,"uuid":"187331059","full_name":"watzon/ohshit","owner":"watzon","description":"Oh Shit! is the command fixer you didn't know you needed. Inspired by thefuck.","archived":false,"fork":false,"pushed_at":"2019-05-18T08:05:19.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T01:40:39.411Z","etag":null,"topics":["bash","crystal","crystal-language","shell","thefuck","zsh"],"latest_commit_sha":null,"homepage":null,"language":"Crystal","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/watzon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-18T08:03:27.000Z","updated_at":"2024-03-18T02:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"088cb509-995d-4625-afe4-4ce73cd4ed59","html_url":"https://github.com/watzon/ohshit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/watzon/ohshit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fohshit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fohshit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fohshit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fohshit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watzon","download_url":"https://codeload.github.com/watzon/ohshit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fohshit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32020678,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","crystal","crystal-language","shell","thefuck","zsh"],"created_at":"2024-11-13T11:56:46.235Z","updated_at":"2026-04-19T19:33:33.529Z","avatar_url":"https://github.com/watzon.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh Shit!\n\nThis app was heavily inspired by [nvbn/thefuck](https://github.com/nvbn/thefuck), so credit where credit is due. That being said, Oh Shit! aims to be an even more powerful, fast, and gratifying way to correct your shell mistakes. Since Oh Shit! is written in Crystal you should see a significant speed increse, and you don't need to worry about any Python!\n\n**Note:** This is still in development. The below instructions do not work yet.\n\n## Installation\n\nFor now, installation will require cloning this repo and building yourself. Binaries will be available in the future.\n\n```shell\ncd /opt\ngit clone https://github.com/watzon/ohshit\ncd ohshit\ncrystal build --release\nsudo ln -ls /opt/ohshit/bin/ohshit /usr/local/bin/ohshit\nohshit set-aliases\n```\n\nThe `set-aliases` command will set an alias in your `.bashrc` and `.zshrc` files, allowing you to run Oh Shit! with the `shit` command instead of `ohshit`. To do this manually add the following to your shell configuration files.\n\n```shell\nalias shit='ohshit'\n```\n\nDon't forget to reload your configuration any time you make a change.\n\n```shell\nsource ~/.zshrc\n```\n\n## Usage\n\nWhenever you run an incorrect command on your terminal just follow it up with `shit` to have your mistake instantly corrected.\n\n### Examples\n\n```shell\n➜ pacman -S vim\nerror: you cannot perform this operation unless you are root.\n\n➜ shit\nsudo pacman -S vim [enter/↑/↓/ctrl+c]\n[sudo] password for watzon:\nresolving dependencies...\n...\n```\n\n```shell\n➜ git push\nfatal: The current branch master has no upstream branch.\nTo push the current branch and set the remote as upstream, use\n\n    git push --set-upstream origin master\n\n\n➜ shit\ngit push --set-upstream origin master [enter/↑/↓/ctrl+c]\nCounting objects: 2, done.\n...\n```\n\n```shell\n➜ git brnch\ngit: 'brnch' is not a git command. See 'git --help'.\n\nThe most similar command is\n\tbranch\n\n➜ shit\ngit branch [enter/↑/↓/ctrl+c]\n* master\n```\n\n## Development\n\nFeel free to help with issue tracking by [submitting an issue](https://github.com/watzon/ohshit/issues/new) if you run into one. Do remember that this is alpha software and comes with no assurances that it will work correctly.\n\nAlternatively you can always fork this repo and do some coding yourself. I open all contributions and appreciate the effort.\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/watzon/ohshit/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Chris Watson](https://github.com/watzon) - creator and maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatzon%2Fohshit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatzon%2Fohshit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatzon%2Fohshit/lists"}