{"id":20830006,"url":"https://github.com/bimlas/bash-jobs-prompt","last_synced_at":"2026-04-13T06:37:28.580Z","repository":{"id":81034468,"uuid":"371507273","full_name":"bimlas/bash-jobs-prompt","owner":"bimlas","description":"Bash: Shell prompt component for displaying background jobs","archived":false,"fork":false,"pushed_at":"2024-02-04T14:48:23.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T08:15:27.248Z","etag":null,"topics":["bash","cli","command-line","prompt","terminal","zsh"],"latest_commit_sha":null,"homepage":"","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/bimlas.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":"2021-05-27T21:22:30.000Z","updated_at":"2024-02-04T14:47:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"1cb7a816-dfdb-4cc5-84f9-abf26bac1a9e","html_url":"https://github.com/bimlas/bash-jobs-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bimlas/bash-jobs-prompt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fbash-jobs-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fbash-jobs-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fbash-jobs-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fbash-jobs-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bimlas","download_url":"https://codeload.github.com/bimlas/bash-jobs-prompt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bimlas%2Fbash-jobs-prompt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266111434,"owners_count":23877980,"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","cli","command-line","prompt","terminal","zsh"],"created_at":"2024-11-17T23:22:54.188Z","updated_at":"2026-04-13T06:37:23.553Z","avatar_url":"https://github.com/bimlas.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jobs prompt: Shell prompt component for displaying background jobs\n\nIf you frequently use the `Ctrl + Z` shortcut in Bash or Zsh shells to send a\nprocess to the background, it can be useful to see the list of jobs\ncontinuously without having to query it with the `jobs` command.\n\n[See the screencast on YouTube](https://youtu.be/EtlsE53qG9U)\n\n## Installation\n\nDownload the `bin/jobs_prompt` script and place it somewhere on your PATH or use\n[Basher](https://github.com/basherpm/basher).\n\nGet the source code, report bugs, open pull requests, or just star because\nyou didn't know that you need it:\n\n* https://github.com/bimlas/bash-jobs-prompt\n\n## Usage\n\nAt the desired part of the prompt, call the script by sending the output of `jobs` to it.\n\n```\nPS1+='$(jobs | jobs_prompt)'\n```\n\nIf you also want to add surrounding text that only appears if there are jobs,\nyou can use the following solution.\n\n```\nPS1+='$('\nPS1+='jobs'\nPS1+='| jobs_prompt'\nPS1+='| sed \"s/.\\\\+/\\\\n Jobs: \u0026 \\\\n/\"'\nPS1+=')'\n```\n\n## Configuration\n\nYou can change the color of the prompt sections with environment variables.\n\n* `JOBS_PROMPT_RED`\n  * The color of stopped / suspended processes\n* `JOBS_PROMPT_GREEN`\n  * The color of running processes\n* `JOBS_PROMPT_TEXT`\n  * The color of job numbers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fbash-jobs-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbimlas%2Fbash-jobs-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbimlas%2Fbash-jobs-prompt/lists"}