{"id":13486908,"url":"https://github.com/powerline/powerline","last_synced_at":"2025-05-14T08:05:12.411Z","repository":{"id":37752303,"uuid":"4637221","full_name":"powerline/powerline","owner":"powerline","description":"Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.","archived":false,"fork":false,"pushed_at":"2024-09-30T00:48:39.000Z","size":4272,"stargazers_count":14527,"open_issues_count":237,"forks_count":997,"subscribers_count":264,"default_branch":"develop","last_synced_at":"2025-05-14T08:03:52.663Z","etag":null,"topics":["bash","fish","ipython","powerline","prompt","python","statusline","tmux","vim","zsh"],"latest_commit_sha":null,"homepage":"https://powerline.readthedocs.org/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powerline.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","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}},"created_at":"2012-06-12T12:48:40.000Z","updated_at":"2025-05-14T04:19:20.000Z","dependencies_parsed_at":"2023-10-13T01:42:59.605Z","dependency_job_id":"548540c9-601d-4ecb-9a4b-56bdc8948aa4","html_url":"https://github.com/powerline/powerline","commit_stats":{"total_commits":2296,"total_committers":158,"mean_commits":"14.531645569620252","dds":0.5344076655052266,"last_synced_commit":"574bb1887b9f27b3c046c6b74a1f3ed75b115a75"},"previous_names":["lokaltog/powerline"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerline%2Fpowerline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerline%2Fpowerline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerline%2Fpowerline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerline%2Fpowerline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powerline","download_url":"https://codeload.github.com/powerline/powerline/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101588,"owners_count":22014907,"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","fish","ipython","powerline","prompt","python","statusline","tmux","vim","zsh"],"created_at":"2024-07-31T18:00:52.800Z","updated_at":"2025-05-14T08:05:12.386Z","avatar_url":"https://github.com/powerline.png","language":"Python","readme":"Powerline\n=========\n\n**Powerline is a statusline plugin for vim, and provides statuslines and \nprompts for several other applications, including zsh, bash, fish, tmux,\nIPython, Awesome, i3 and Qtile.**\n\n+---------+---------------------------------------------------+\n| Author  | Kim Silkebækken (kim.silkebaekken+vim@gmail.com)  |\n+---------+---------------------------------------------------+\n| Source  | https://github.com/powerline/powerline            |\n+---------+---------------------------------------------------+\n| Version | beta                                              |\n+---------+---------------------------------------------------+\n\n**Powerline does not support python2 anymore and powerline will stop working with python2 in the near future.**\n\nFeatures\n--------\n\n* **Extensible and feature rich, written in Python.** Powerline was \n  completely rewritten in Python to get rid of as much vimscript as \n  possible. This has allowed much better extensibility, leaner and better \n  config files, and a structured, object-oriented codebase with no mandatory\n  third-party dependencies other than a Python interpreter.\n* **Stable and testable code base.** Using Python has allowed unit testing \n  of all the project code. The code is tested to work in Python 3.6+.\n* **Support for prompts and statuslines in many applications.** Originally \n  created exclusively for vim statuslines, the project has evolved to \n  provide statuslines in tmux and several WMs, and prompts for shells like \n  bash/zsh and other applications. It’s simple to write renderers for any \n  other applications that Powerline doesn’t yet support.\n* **Configuration and colorschemes written in JSON.** JSON is \n  a standardized, simple and easy to use file format that allows for easy \n  user configuration across all of Powerline’s supported applications.\n* **Fast and lightweight, with daemon support for even better performance.**\n  Although the code base spans a couple of thousand lines of code with no \n  goal of “less than X lines of code”, the main focus is on good performance \n  and as little code as possible while still providing a rich set of \n  features. The new daemon also ensures that only one Python instance is \n  launched for prompts and statuslines, which provides excellent \n  performance.\n\n*But I hate Python / I don’t need shell prompts / this is just too much \nhassle for me / what happened to the original vim-powerline project / …*\n\nYou should check out some of the Powerline derivatives. The most lightweight\nand feature-rich alternative is currently the `vim-airline \n\u003chttps://github.com/vim-airline/vim-airline\u003e`_ project.\n\nConfiguration\n-------------\n\nBasic powerline configuration is done via `JSON` files located at `.config/powerline/`. It is a good idea to start by copying the default configuration located at `powerline_root/powerline/config_files/` to `.config/powerline/`.\nIf you installed the powerline from the AUR or via pip, `powerline_root` should be `/usr/lib/python3.6/site-packages/` or something similar, depending on your python version.\n\nIf you installed powerline via apt-get 'powerline_root' should be '/usr/share/powerline/'.\n\nThis should yield you the following directory structure:\n\n    ::\n\n        .config/powerline/\n        ├── colorschemes\n        │   ├── ...\n        │   └── wm\n        |       └── default.json  // Your configuration goes here\n        ├── colors.json\n        ├── config.json\n        └── themes\n            ├── ...\n            └── wm\n                └── default.json  // Your configuration goes here\n\n\n\nThe files in the subdirectories of `themes` are used to specify which segments shall be shown; the files in subdirectories of `colorschemes` are used to specify which colors (as defined in `colors.json`) shall be used to display a segment.\n\nNote that your local configuration only overrides the global configuration, it does not replace it, i.e. if you don't configure something locally, the global default will be used instead.\n\n* Consult the `documentation \u003chttps://powerline.readthedocs.org/en/latest/configuration.html#quick-setup-guide\u003e`_ for more details. See also the `segment reference \u003chttps://powerline.readthedocs.org/en/latest/configuration/segments.html\u003e`_ for available segments and their configuration.\n* Check out `powerline-fonts \u003chttps://github.com/powerline/fonts\u003e`_ for \n  pre-patched versions of popular, open source coding fonts.\n\nScreenshots\n-----------\n\nVim statusline\n^^^^^^^^^^^^^^\n\n**Mode-dependent highlighting**\n\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-mode-normal.png\n     :alt: Normal mode\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-mode-insert.png\n     :alt: Insert mode\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-mode-visual.png\n     :alt: Visual mode\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-mode-replace.png\n     :alt: Replace mode\n\n**Automatic truncation of segments in small windows**\n\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-truncate1.png\n     :alt: Truncation illustration\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-truncate2.png\n     :alt: Truncation illustration\n* .. image:: https://raw.github.com/powerline/powerline/develop/docs/source/_static/img/pl-truncate3.png\n     :alt: Truncation illustration\n\n----\n\nThe font in the screenshots is `Pragmata Pro`_ by Fabrizio Schiavi.\n\n.. _`Pragmata Pro`: http://www.fsd.it/shop/fonts/pragmatapro\n","funding_links":[],"categories":["Python","编辑器","bash","\u003ca name=\"prompt\"\u003e\u003c/a\u003ePrompts","Vim","\u003ca name=\"tools\"\u003e\u003c/a\u003eTools and session management","Plugins"],"sub_categories":["网络服务_其他","Chess :chess_pawn:"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerline%2Fpowerline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerline%2Fpowerline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerline%2Fpowerline/lists"}