{"id":17720607,"url":"https://github.com/freed-wu/bash-prompt","last_synced_at":"2025-09-19T04:32:19.811Z","repository":{"id":190772150,"uuid":"683322491","full_name":"Freed-Wu/bash-prompt","owner":"Freed-Wu","description":"Bash plugin for powerlevel10k style prompt and WakaTime time tracking","archived":false,"fork":false,"pushed_at":"2024-10-21T20:20:06.000Z","size":38,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-22T14:37:08.512Z","etag":null,"topics":["bash","git","plugin","powerlevel10k","wakatime"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freed-Wu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":["https://user-images.githubusercontent.com/32936898/199681341-1c5cfa61-4411-4b67-b268-7cd87c5867bb.png","https://user-images.githubusercontent.com/32936898/199681363-1094a0be-85ca-49cf-a410-19b3d7965120.png","https://user-images.githubusercontent.com/32936898/199681368-c34c2be7-e0d8-43ea-8c2c-d3e865da6aeb.png"]}},"created_at":"2023-08-26T07:32:06.000Z","updated_at":"2024-07-15T17:18:32.000Z","dependencies_parsed_at":"2023-10-03T06:19:39.127Z","dependency_job_id":"821df8ef-22bd-40a6-abf2-5efed6caa8d7","html_url":"https://github.com/Freed-Wu/bash-prompt","commit_stats":null,"previous_names":["freed-wu/bash-prompt-style"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freed-Wu%2Fbash-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freed-Wu%2Fbash-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freed-Wu%2Fbash-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freed-Wu%2Fbash-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freed-Wu","download_url":"https://codeload.github.com/Freed-Wu/bash-prompt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233437387,"owners_count":18676142,"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","git","plugin","powerlevel10k","wakatime"],"created_at":"2024-10-25T15:28:27.644Z","updated_at":"2025-09-19T04:32:14.518Z","avatar_url":"https://github.com/Freed-Wu.png","language":"Shell","funding_links":["https://user-images.githubusercontent.com/32936898/199681341-1c5cfa61-4411-4b67-b268-7cd87c5867bb.png","https://user-images.githubusercontent.com/32936898/199681363-1094a0be-85ca-49cf-a410-19b3d7965120.png","https://user-images.githubusercontent.com/32936898/199681368-c34c2be7-e0d8-43ea-8c2c-d3e865da6aeb.png"],"categories":[],"sub_categories":[],"readme":"# bash-prompt\n\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Freed-Wu/bash-prompt/main.svg)](https://results.pre-commit.ci/latest/github/Freed-Wu/bash-prompt/main)\n[![github/workflow](https://github.com/Freed-Wu/bash-prompt/actions/workflows/main.yml/badge.svg)](https://github.com/Freed-Wu/bash-prompt/actions)\n[![codecov](https://codecov.io/gh/Freed-Wu/bash-prompt/branch/main/graph/badge.svg)](https://codecov.io/gh/Freed-Wu/bash-prompt)\n\n[![github/downloads](https://shields.io/github/downloads/Freed-Wu/bash-prompt/total)](https://github.com/Freed-Wu/bash-prompt/releases)\n[![github/downloads/latest](https://shields.io/github/downloads/Freed-Wu/bash-prompt/latest/total)](https://github.com/Freed-Wu/bash-prompt/releases/latest)\n[![github/issues](https://shields.io/github/issues/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/issues)\n[![github/issues-closed](https://shields.io/github/issues-closed/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/issues?q=is%3Aissue+is%3Aclosed)\n[![github/issues-pr](https://shields.io/github/issues-pr/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/pulls)\n[![github/issues-pr-closed](https://shields.io/github/issues-pr-closed/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/pulls?q=is%3Apr+is%3Aclosed)\n[![github/discussions](https://shields.io/github/discussions/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/discussions)\n[![github/milestones](https://shields.io/github/milestones/all/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/milestones)\n[![github/forks](https://shields.io/github/forks/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/network/members)\n[![github/stars](https://shields.io/github/stars/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/stargazers)\n[![github/watchers](https://shields.io/github/watchers/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/watchers)\n[![github/contributors](https://shields.io/github/contributors/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/graphs/contributors)\n[![github/commit-activity](https://shields.io/github/commit-activity/w/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/graphs/commit-activity)\n[![github/last-commit](https://shields.io/github/last-commit/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/commits)\n[![github/release-date](https://shields.io/github/release-date/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/releases/latest)\n\n[![github/license](https://shields.io/github/license/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt/blob/main/LICENSE)\n[![github/languages](https://shields.io/github/languages/count/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n[![github/languages/top](https://shields.io/github/languages/top/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n[![github/directory-file-count](https://shields.io/github/directory-file-count/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n[![github/code-size](https://shields.io/github/languages/code-size/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n[![github/repo-size](https://shields.io/github/repo-size/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n[![github/v](https://shields.io/github/v/release/Freed-Wu/bash-prompt)](https://github.com/Freed-Wu/bash-prompt)\n\nThis project provides:\n\n- A [powerlevel10k](https://github.com/romkatv/powerlevel10k)-like prompt style\n  of bash.\n\n![screenshot](https://github.com/Freed-Wu/Freed-Wu/assets/32936898/5c145ca4-7565-4410-9e84-99cec7476f83)\n\n- A wakatime plugin to statistic how much time you write bash in REPL.\n\n![wakatime](https://user-images.githubusercontent.com/32936898/226532448-84086ab6-241a-45f0-b8c1-6db8a7bb3fcf.jpg)\n\n## Dependencies\n\n- [gitstatus](https://github.com/romkatv/gitstatus): provide git status\n- [wakatime-cli](https://github.com/wakatime/wakatime-cli)\n\n## Install\n\n### [AUR](https://aur.archlinux.org/packages/bash-prompt-git)\n\n```sh\nparu -S bash-prompt-git\n```\n\n### [NUR](https://nur.nix-community.org/repos/freed-wu)\n\n```sh\nnix-env -iA nixos.nur.repos.Freed-Wu.bash-prompt\n```\n\n## Usage\n\n`~/.bashrc`:\n\n```sh\n. /the/path/of/this/plugin/prompt.sh\n# GNU/Linux\n. /usr/share/bash-prompt/prompt.sh\n# NixOS\n. /run/current-system/sw/share/bash-prompt/prompt.sh\n# Nix\n. \"${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile/share/bash-prompt/prompt.sh\"\n```\n\nBy default, it will enable wakatime. You can disable it by removing\n`prompt_wakatime` from `$PROMPT_COMMAND`.\n\nBy default, it will not change your prompt. You should enable it by:\n\n```sh\nPS1=\"$(prompt_get_ps1)\"\n# or you can customize\nPS1=\"$(prompt_get_ps1 [prompt_string] [[format] fg_color:bg_color:text [sep]] ...)\"\n```\n\n![prompt_get_ps1](https://github.com/Freed-Wu/bash-prompt/assets/32936898/efe0951f-155a-4b0a-8ef2-ed40fcd79900)\n\nSee\n[powerline-extra-symbols](https://github.com/ryanoasis/powerline-extra-symbols)\nfor `sep`.\n\n`text` can be:\n\n- `\"$prompt_icon\"`: icon of OS\n- `'${GITSTATUS_PROMPT}'`: git status information. See\n  [gitstatus](https://github.com/romkatv/gitstatus) to know how to customize\n  it.\n- [prompt escape code](https://www.gnu.org/software/bash/manual/bash.html#Controlling-the-Prompt)\n\n`fg_color`/`bg_color` can be color name or color value.\nSee _Color Handling_ of\n[`man 5 terminfo`](https://man7.org/linux/man-pages/man5/terminfo.5.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreed-wu%2Fbash-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreed-wu%2Fbash-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreed-wu%2Fbash-prompt/lists"}