{"id":15557683,"url":"https://github.com/fgasper/pretty-exit-status","last_synced_at":"2025-08-24T02:04:26.050Z","repository":{"id":141193867,"uuid":"49610014","full_name":"FGasper/pretty-exit-status","owner":"FGasper","description":"Shell include that shows the status of the last-executed process","archived":false,"fork":false,"pushed_at":"2017-08-30T14:02:42.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-03T13:45:12.472Z","etag":null,"topics":["bashrc","exit","exit-handler","exitcode","profile","signals"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/FGasper.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":"2016-01-13T23:52:23.000Z","updated_at":"2017-08-30T14:05:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"1358a2e6-77c7-4cae-a469-bcbdb0f48573","html_url":"https://github.com/FGasper/pretty-exit-status","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"e41ee05e2ce0ceb92abb69e8ac32c8d046cebb2f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fpretty-exit-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fpretty-exit-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fpretty-exit-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fpretty-exit-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGasper","download_url":"https://codeload.github.com/FGasper/pretty-exit-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246135739,"owners_count":20729056,"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":["bashrc","exit","exit-handler","exitcode","profile","signals"],"created_at":"2024-10-02T15:20:20.140Z","updated_at":"2025-03-29T03:46:30.993Z","avatar_url":"https://github.com/FGasper.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pretty-exit-status.sh\nShell include that shows the status of the last-executed process\n\nTo use:\n\n1) Save `pretty-exit-status.sh` somewhere sensible.\n(e.g., `~/.pretty_exit_status.sh`)\n\n2) In your `.bashrc` or `.bash_profile` add the following:\n\n```\nsource ~/.pretty_exit_status.sh\n```\n\n(or wherever you saved the script)\n\n3) Later on in that same `.bashrc` or `.bash_profile`,\nput the following somewhere in the `PS1` variable:\n\n```\n$(pretty_exit_status $?)\n```\n\nFor example, if you just want to prefix your current prompt,\njust do:\n\n```\nexport PS1='$(pretty_exit_status $?)\\n'$PS1\n```\n\nThat’s it! :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fpretty-exit-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgasper%2Fpretty-exit-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fpretty-exit-status/lists"}