{"id":17592689,"url":"https://github.com/rdnetto/powerline-hs","last_synced_at":"2025-04-14T03:33:58.670Z","repository":{"id":87885612,"uuid":"65200949","full_name":"rdnetto/powerline-hs","owner":"rdnetto","description":"A lightning fast reimplementation of the Powerline prompt generator in Haskell.","archived":false,"fork":false,"pushed_at":"2024-01-03T08:18:47.000Z","size":228,"stargazers_count":117,"open_issues_count":7,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T17:35:47.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rdnetto.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}},"created_at":"2016-08-08T12:03:38.000Z","updated_at":"2024-09-03T16:09:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"8af17658-f736-4132-8cef-8e6bb1f99a09","html_url":"https://github.com/rdnetto/powerline-hs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdnetto%2Fpowerline-hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdnetto%2Fpowerline-hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdnetto%2Fpowerline-hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdnetto%2Fpowerline-hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdnetto","download_url":"https://codeload.github.com/rdnetto/powerline-hs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248815550,"owners_count":21165944,"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":[],"created_at":"2024-10-22T05:42:53.764Z","updated_at":"2025-04-14T03:33:58.645Z","avatar_url":"https://github.com/rdnetto.png","language":"Haskell","funding_links":[],"categories":["Themes"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# Powerline-hs\n[![Build Status](https://travis-ci.org/rdnetto/powerline-hs.svg?branch=master)](https://travis-ci.org/rdnetto/powerline-hs)\n\nPowerline-hs is a [Powerline](https://github.com/powerline/powerline) clone written in Haskell. It is significantly faster than the original implementation, and makes the shell noticeably more responsive.\n\n## Benchmarks\nPowerline-hs takes just 79.1 ms to render both prompts, in comparison to Powerline which took 1.25 seconds. (The execution time for a Python Hello World program is included for context.)\n\n[![Complete benchmark](https://rdnetto.github.io/powerline-hs/bench.png)](https://rdnetto.github.io/powerline-hs/bench.html)\n(Click on the graph for an interactive version.)\n\nYou can find the source for these benchmarks [here](https://github.com/rdnetto/powerline-hs/blob/master/bench/Bench.hs), and the Powerline configuration they were run against [here](https://github.com/rdnetto/oh-my-zsh/tree/master/powerline/config). To run the benchmarks, use:\n\n    stack bench --benchmark-arguments '--output=bench.html -L 10'\n\n## Limitations\nPowerline-hs currently only supports shell prompt generation (Bash, ZSH). It does not support the following segments:\n\n* `powerline.segments.common.net.network_load`\n* `powerline.segments.common.wthr.weather`\n* `powerline.segments.common.time.fuzzy_time`\n* `powerline.segments.common.mail.email_imap_alert`\n* `powerline.segments.common.players.*`\n\nSupport for other segments and usages may be added on request, time permitting. Pull requests are always welcome.\n\n## Installation\nYou will need to have Powerline installed, since Powerline-hs uses its config files and shell scripts.\n\nYou can download a pre-compiled binary from the [Releases](https://github.com/rdnetto/powerline-hs/releases) page - just extract the tarball and you're good to go.\n\nAlternatively, you can compile from source using [Stack](https://docs.haskellstack.org/en/stable/README/#how-to-install) with:\n\n    stack install\n\n## Configuration\nPowerline-hs is intended to be a drop-in replacement for Powerline. This means that most of [Powerline's documentation](https://powerline.readthedocs.io/en/master/configuration.html#quick-setup-guide) still applies, and that it should produce the same output without any additional configuration. If it does not, please file a bug.\n\nTo try out Powerline-hs in your current shell, just run:\n\n    export POWERLINE_COMMAND=$HOME/.local/bin/powerline-hs\n\n(`~/.local/bin` is the path `stack install` copies it into - you may need to change it if you placed the executable somewhere else.)\n\nTo make it the default, add the following to your shell's RC file (e.g. `.zshrc`):\n\n    POWERLINE_COMMAND=$HOME/.local/bin/powerline-hs\n    POWERLINE_CONFIG_COMMAND=/bin/true\n    source /usr/share/zsh/site-contrib/powerline.zsh\n\nThe path of the shell script will depend on where you have Powerline installed and which distro you are using.\n\n### Git status\nPowerline only provides a basic git information segment. There is an implementation [here](https://github.com/jaspernbrouwer/powerline-gitstatus) that adds a more advance git status support. Powerline-hs follows powerline-gistatus convention and only provides partial support. \n\nFeatures supported:\n\n* n commits ahead. Colorscheme group `gitstatus_ahead`, e.g. `\"gitstatus_ahead\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_ahead\",\n  \"priority\": 40\n}\n```\n\n* n commits behind. Colorscheme group `gitstatus_behind`, e.g. `\"gitstatus_behind\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_behind\",\n  \"priority\": 40\n}\n```\n\n* n staged files. Colorscheme group `gitstatus_staged`, e.g. `\"gitstatus_staged\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_staged\",\n  \"priority\": 40\n}\n```\n\n* n unmerged files. Colorscheme group `gitstatus_unmerged`, e.g. `\"gitstatus_unmerged\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_unmerged\",\n  \"priority\": 40\n}\n```\n\n* n changed files. Colorscheme group `gitstatus_changed`, e.g. `\"gitstatus_changed\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_changed\",\n  \"priority\": 40\n}\n```\n\n* n untracked files. Colorscheme group `gitstatus_untracked`, e.g. `\"gitstatus_untracked\":{ \"fg\": \"gray10\", \"bg\": \"gray2\", \"attrs\": [] }`.\n\n```\n{\n  \"function\": \"powerline_gitstatus.gitstatus_untracked\",\n  \"priority\": 40\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdnetto%2Fpowerline-hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdnetto%2Fpowerline-hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdnetto%2Fpowerline-hs/lists"}