{"id":21616021,"url":"https://github.com/darkwebdesign/advanced-ps1","last_synced_at":"2026-04-13T13:01:16.354Z","repository":{"id":139494501,"uuid":"66732967","full_name":"darkwebdesign/advanced-ps1","owner":"darkwebdesign","description":"Advanced PS1","archived":false,"fork":false,"pushed_at":"2016-08-27T19:58:29.000Z","size":16,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-30T09:39:03.571Z","etag":null,"topics":[],"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/darkwebdesign.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-08-27T19:55:44.000Z","updated_at":"2021-02-16T22:42:13.000Z","dependencies_parsed_at":"2023-03-13T10:48:03.616Z","dependency_job_id":null,"html_url":"https://github.com/darkwebdesign/advanced-ps1","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/darkwebdesign/advanced-ps1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwebdesign%2Fadvanced-ps1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwebdesign%2Fadvanced-ps1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwebdesign%2Fadvanced-ps1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwebdesign%2Fadvanced-ps1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwebdesign","download_url":"https://codeload.github.com/darkwebdesign/advanced-ps1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwebdesign%2Fadvanced-ps1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-24T22:13:24.110Z","updated_at":"2026-04-13T13:01:16.349Z","avatar_url":"https://github.com/darkwebdesign.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced PS1\nExample output:\n```\nsome stdout output\n✓ [2m16s] 08:57:05 raymond.schouten@mc16:~/github/advanced-ps1 $\n```\n```\nsome stdout output\n✓ [2m16s] 08:57:05 raymond.schouten@mc16:~/github/advanced-ps1 (master) $\n```\n```\nsome terminated stdout output▼\n✗ (1) [2m16s] 08:57:05 raymond.schouten@mc16:~/github/advanced-ps1 (master) $\n```\n```\nsome terminated stdout output▼\n✗ (1: Catchall for general errors) [2m16s] 08:57:05 raymond.schouten@mc16:~/github/advanced-ps1 (master) $\n```\n\n# Features\n- Configurable and colorized advanced PS1\n- Adds a newline and marker to terminated stdout output if needed\n- Shows last command status\n- Shows last command exit code (with message if possible when enabled)\n- Shows last command duration in human readable format\n- Shows 12/24-hour formatted time\n- Shows user (root has differently color), host and path\n- Shows Git repository information (using __git_ps1)\n- Shows prompt (root has different prompt)\n\n# Options\n- **ADVANCED_PS1_SHOWNEWLINE** - Show \"newline\" character and place prompt on new line when prompt was appended to last command output.\n- **ADVANCED_PS1_SHOW0EXITCODE** - Always show exit code, even when it is 0.\n- **ADVANCED_PS1_SHOWEXITCODEMESSAGE** - Show message if possible for exit code.\n- **ADVANCED_PS1_SHOW0DURATION** - Always show duration, even when it is 0 seconds.\n- **ADVANCED_PS1_SHOWTIME12H** - Show time in 12-hour format.\n\n# Installation\nPut the following lines in your ~/.bashrc file:\n```sh\n# Source advanced PS1.\nsource '/path/to/advanced-ps1';\n\n# Enable advanced PS1 duration measurement.\ntrap '__advanced_ps1_debug_trap' DEBUG;\n\n# Enable advanced PS1.\nPROMPT_COMMAND='__advanced_ps1';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwebdesign%2Fadvanced-ps1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwebdesign%2Fadvanced-ps1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwebdesign%2Fadvanced-ps1/lists"}