{ "info": { "author": "Savio Fernandes", "author_email": "savio@saviof.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Hyper-prompt\n\n[![Version](https://img.shields.io/badge/version-1.1.0-green.svg)]()\n\n[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/artbycrunk/hyper-prompt.svg)](https://isitmaintained.com/project/artbycrunk/hyper-prompt \"Average time to resolve an issue\")\n[![Percentage of issues still open](https://isitmaintained.com/badge/open/artbycrunk/hyper-prompt.svg)](https://isitmaintained.com/project/artbycrunk/hyper-prompt \"Percentage of issues still open\")\n\n[![](https://img.shields.io/badge/TWITTER-%40artbycrunk-blue.svg?logo=twitter&style=flat)](https://twitter.com/artbycrunk)\n[![](https://img.shields.io/badge/gitter-join_chat-1dce73.svg?style=flat&logo=gitter-white)](https://gitter.im/hyper-prompt/hyper-prompt)\n\n\nA Highly Customize-able prompt for your shell\n\n![header](images/header.gif)\n\n## Requirements\n\n- Python3\n- Powerline Fonts : https://github.com/powerline/fonts\n\n## Getting Started\n\n```bash\ngit clone https://github.com/artbycrunk/hyper-prompt\ncd hyper-prompt\npython setup.py install\n```\n\n## Configure for your desired shell\n\n### * Bash\n\nAdd the following to your `.bashrc` file:\n\n```bash\nfunction _update_ps1() {\n PS1=$(hyper-prompt $?)\n}\n\nif [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then\n PROMPT_COMMAND=\"_update_ps1; $PROMPT_COMMAND\"\nfi\n```\n\n### * Zsh\n\nAdd the following to your `.zshrc`:\n\n```zsh\nfunction prompt_precmd() {\n PS1=\"$(hyper-prompt --shell zsh $?)\"\n}\n\nfunction add_prompt_precmd() {\n for s in \"${precmd_fn[@]}\"; do\n if [ \"$s\" = \"prompt_precmd\" ]; then\n return\n fi\n done\n precmd_fn+=(prompt_precmd)\n}\n\nif [ \"$TERM\" != \"linux\" ]; then\n add_prompt_precmd\nfi\n```\n\n### * Fish\n\nAdd the following to your `~/.config/fish/config.fish`:\n\n```shell\nfunction fish_prompt\n hyper-prompt --shell bare $status\nend\n```\n\n### * tcsh\n\nAdd the following to your `.tcshrc`:\n\n```bash\nalias precmd 'set prompt=\"`hyper-prompt --shell tcsh $?`\"'\n```\n\n## Customization Options\n\n### Config File\n\nHyper prompt will lookup multiple locations for a config file for options on how to display your prompt..\n\nIt will first look for a `hyper_prompt.json` in your current project/folder, if it doesn't exists look for `$HOME/.hyper_prompt.json` else finally look for `$HOME/.config/hyper_prompt/config.json`\n\nUse `~/.config/hyper-prompt/config.json` as a config file for customizations.\n\nExample of a default config\n```json\n\"theme\": \"default\",\n\"mode\":\"patched\",\n\"segments\": [\n \"username\",\n {\n \"type\": \"virtual\",\n // a user built segment which is discoverable via the python path\n \"module\": \"hyper_prompt.segments.virtual\"\n }\n]\n```\n\n### Segments\n\nSegments are the building blocks of hyper-prompt\n\nYou can mix and match different segments to build your prompt.\n\n\n## Issues, feature requests, and contributions\n\n* If you come across a problem with the extension, please [file an issue](https://github.com/artbycrunk/hyper-prompt/issues/new)\n* Contributions are always welcome!\n* Any and all feedback is appreciated and welcome!\n - If someone has already [filed an issue](https://github.com/artbycrunk/hyper-prompt/issues) that encompasses your feedback, please leave a \ud83d\udc4d/\ud83d\udc4e reaction on the issue\n - Otherwise please file a new issue\n\n## Release Notes\n\nSee [CHANGELOG.md](./CHANGELOG.md)\n\nSee [Recent Releases](https://github.com/artbycrunk/hyper-prompt/releases)\n\n**Enjoy!**", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/artbycrunk/hyper-prompt/archive/1.1.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/artbycrunk/hyper-prompt", "keywords": "prompts,shell,bash,zsh", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "hyper-prompt", "package_url": "https://pypi.org/project/hyper-prompt/", "platform": "", "project_url": "https://pypi.org/project/hyper-prompt/", "project_urls": { "Download": "https://github.com/artbycrunk/hyper-prompt/archive/1.1.0.tar.gz", "Homepage": "https://github.com/artbycrunk/hyper-prompt" }, "release_url": "https://pypi.org/project/hyper-prompt/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "Highly Customize-able prompt for your shell", "version": "1.1.1" }, "last_serial": 5934704, "releases": { "1.1.1": [ { "comment_text": "", "digests": { "md5": "299807cdb465c607e911f8e2d8146cc8", "sha256": "4cd62c49fb75182fa955761afcc653a79f6627e138edc744892c018e07266640" }, "downloads": -1, "filename": "hyper-prompt-1.1.1.tar.gz", "has_sig": false, "md5_digest": "299807cdb465c607e911f8e2d8146cc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12343, "upload_time": "2019-10-06T12:10:09", "url": "https://files.pythonhosted.org/packages/44/16/6f6c0ab9b3aa1730e9a185e7601106c94ff2464bd061bb04d97c42e1e06d/hyper-prompt-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "299807cdb465c607e911f8e2d8146cc8", "sha256": "4cd62c49fb75182fa955761afcc653a79f6627e138edc744892c018e07266640" }, "downloads": -1, "filename": "hyper-prompt-1.1.1.tar.gz", "has_sig": false, "md5_digest": "299807cdb465c607e911f8e2d8146cc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12343, "upload_time": "2019-10-06T12:10:09", "url": "https://files.pythonhosted.org/packages/44/16/6f6c0ab9b3aa1730e9a185e7601106c94ff2464bd061bb04d97c42e1e06d/hyper-prompt-1.1.1.tar.gz" } ] }