{"id":19004395,"url":"https://github.com/knrdl/poligo","last_synced_at":"2026-03-07T18:01:18.769Z","repository":{"id":128132016,"uuid":"435462212","full_name":"knrdl/poligo","owner":"knrdl","description":"PowerLine for Bash","archived":false,"fork":false,"pushed_at":"2025-10-27T13:16:22.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T15:39:49.993Z","etag":null,"topics":["go","golang","powerline","powerline-go","powerline-shell"],"latest_commit_sha":null,"homepage":"","language":"Go","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/knrdl.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-12-06T10:59:54.000Z","updated_at":"2025-10-27T13:16:23.000Z","dependencies_parsed_at":"2024-01-08T18:32:35.554Z","dependency_job_id":"35e4ad2f-dc7a-49bc-abba-b010642cb0d7","html_url":"https://github.com/knrdl/poligo","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/knrdl/poligo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knrdl%2Fpoligo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knrdl%2Fpoligo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knrdl%2Fpoligo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knrdl%2Fpoligo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knrdl","download_url":"https://codeload.github.com/knrdl/poligo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knrdl%2Fpoligo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30225405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"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":["go","golang","powerline","powerline-go","powerline-shell"],"created_at":"2024-11-08T18:23:00.976Z","updated_at":"2026-03-07T18:01:18.733Z","avatar_url":"https://github.com/knrdl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PoLiGo\n\n## PowerLine Go\n\nA beautiful and useful prompt generator for **bash** shell\n\nThis project is highly inspired by https://github.com/b-ryan/powerline-shell\n\n## Setup\n\n```bash\nsudo apt install fonts-powerline\n```\n\nDownload binary from [releases](https://github.com/knrdl/poligo/releases) and place it into `/usr/local/bin/poligo`\n\nAdd the following to `~/.bashrc`:\n\n```bash\nfunction enable_poligo() {\n    PS1=\"$(poligo --timeout=500ms cwd-exists warn-memory=75% term-title current-time go-version python-version nodejs-project docker-version kernel-version warn-offline shell-level virtual-env work-dir=4 sudo-root git read-only ssh-connection user-name=your_default_username exit-code=$?)\"\n}\n\nfunction disable_poligo(){\n    PS1='${debian_chroot:+($debian_chroot)}\\[\\033[1;34m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;33m\\]\\w\\[\\033[00m\\]\\$ '\n    PROMPT_COMMAND=\"\"\n}\n\nPROMPT_COMMAND=\"enable_poligo\"\n```\n\nOpen a new terminal and enjoy!\n\n## Configuration\n\n```\n$ poligo\nUsage of poligo: \n  -timeout duration\n    \ttotal execution timeout (default 1s)\n  Segments: \n    cwd-exists: Check current working directory exists\n    warn-memory=N%: Warn if more than N% of memory/swap are used\n    term-title: Set terimal title\n    current-time: Display current time\n    go-version: Display installed go version, if any *.go files in current directory\n    python-version: Display installed python version, if any *.py files in current directory\n    nodejs-project: Display project title and version, if current directory contains package.json\n    docker-version: Display installed docker version, if current directory contains a Dockerfile\n    kernel-version: Display linux kernel version in /, /boot and /usr/src\n    warn-offline: Warn if no network connection available\n    shell-level: Display number of nested shells\n    virtual-env: Notify about activated python virtual environment\n    work-dir=N: Show current working directory, optional limit the output to N folders\n    sudo-root: Warn if current terminal has root permissions via sudo\n    git: Show git status, pushs, pulls, modified files and current branch\n    read-only: Warn if current directory is read only\n    ssh-connection: Warn if terminal is connected via ssh\n    user-name=DEFAULT: Show username except when it equals DEFAULT\n    exit-code=$?: Show if last command returned an error code (parameter must be $?)\n```\n\n## Screenshot\n\n![](screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknrdl%2Fpoligo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknrdl%2Fpoligo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknrdl%2Fpoligo/lists"}