{"id":15714618,"url":"https://github.com/eskerda/barsh","last_synced_at":"2025-07-24T00:04:16.282Z","repository":{"id":137874073,"uuid":"369151399","full_name":"eskerda/barsh","owner":"eskerda","description":"barsh - minimal bash progress bars","archived":false,"fork":false,"pushed_at":"2022-11-12T09:25:48.000Z","size":2,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T04:39:21.198Z","etag":null,"topics":["bash"],"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/eskerda.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}},"created_at":"2021-05-20T09:22:52.000Z","updated_at":"2025-02-19T20:58:44.000Z","dependencies_parsed_at":"2023-03-22T00:03:52.500Z","dependency_job_id":null,"html_url":"https://github.com/eskerda/barsh","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"0032fd0bdc6eaa1a2f4f9c7d295e977d1395a217"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eskerda/barsh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eskerda%2Fbarsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eskerda%2Fbarsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eskerda%2Fbarsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eskerda%2Fbarsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eskerda","download_url":"https://codeload.github.com/eskerda/barsh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eskerda%2Fbarsh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266770214,"owners_count":23981525,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bash"],"created_at":"2024-10-03T21:38:57.891Z","updated_at":"2025-07-24T00:04:16.256Z","avatar_url":"https://github.com/eskerda.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# barsh: a minimal bash progress bar\n\nbarsh is a 7-lines implementation of a progress bar in bash, using bg/fg color\nANSI escape sequences instead of block characters. Use it directly as a\nstandalone tool on your shell, source it and use it on your scripts, or just\nadmire it in all its glory\n\n```bash\nfunction barsh {\n  [[ $# -lt 2 ]] \u0026\u0026 return 1\n  local val=$1; local bas=$2; local txt=$3; local wid=$4;\n\n  [[ -z $wid ]] \u0026\u0026 { [[ -z $txt ]] \u0026\u0026 wid=$bas || wid=${#txt} ; }\n  [[ -z $txt ]] \u0026\u0026 txt=\"$(printf '%*s' \"$wid\" '')\"\n  [[ $wid -gt ${#txt} ]] \u0026\u0026 txt=$txt$(printf '%*s' $((${#txt} - wid)) '')\n\n  local per=$(( (wid * val) / bas ))\n  printf \"\\033[7m%s\\033[27m%s\" \"${txt:0:$per}\" \"${txt:$per:$((wid-per))}\"\n}\n```\n\n## Usage demo\n\n```bash\n$ curl https://raw.githubusercontent.com/eskerda/barsh/master/barsh.sh | bash\n```\n\n\u003cimg src=\"https://eskerda.com/wp-content/uploads/2021/05/barsh-term.gif\" width=\"600px\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feskerda%2Fbarsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feskerda%2Fbarsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feskerda%2Fbarsh/lists"}