Makeprompt
Advanced shell prompts for ZSH.
Usage
Install it:
pip install --user makeprompt
Put this in your ~/.zshrc:
autoload -Uz promptinit promptinit prompt off setopt PROMPT_SUBST PROMPT='$( ~/.local/bin/makeprompt )'
Features
Display user/hostname/path using truecolor (24-bit) colors
8-bit color fallbacks, for terminals that don’t support truecolor
git repository status information (branch, dirty)
Python enabled virtualenv information
Background (stopped) jobs count
Customize
The MAKEPROMPT_COLORS environment variable can be used to change colors of different parts of the prompt.
Format is similar to LS_COLORS, for example:
export MAKEPROMPT_COLORS='user=38;2;56;142;60:host=38;2;198;255;0'
A utility script is provided to conveniently generate TrueColor paletters from HTML hex colors.
For example:
python -m makeprompt.utils.make_truecolor_palette user='#808' host='#f0f' path='#ff0'
you can also use this in your shell configuration:
eval $( python -m makeprompt.utils.make_truecolor_palette ... ) export MAKEPROMPT_COLORS
Development
To test a development version, checked out in ~/Projects/makeprompt:
PROMPT=’$( PYTHONPATH=”$HOME”/Projects/makeprompt python -m makeprompt )’
Metadata
Release files for makeprompt 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| makeprompt-0.3.tar.gz | 6.8 kB | Without provenance | Details for makeprompt-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| makeprompt-0.3-py3-none-any.whl | Python 3 | none | any | Details for makeprompt-0.3-py3-none-any.whl |
Total release size: 14.9 kB
Release files / makeprompt-0.3.tar.gz
| Download URL | makeprompt-0.3.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d4f3f9254bb6f196ef63b6956a743cb123ca1b6ee00620d379915bc8cd7ef91
|
|
BLAKE2b-256 checksum How to use checksums |
af9d594c37804a23e518a1d036fd88ad64e22d95c359e6723a1d9441d22f81a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Release files / makeprompt-0.3-py3-none-any.whl
| Download URL | makeprompt-0.3-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b5f82ba68c0b906707b3f46ee9ef32e997466477fdde4f067b2d2d0bdd6d1d5
|
|
BLAKE2b-256 checksum How to use checksums |
a0d0e4087a698ce9733cb6bc7f58cf30f8a1c7503edffafa52d3181b46796726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Security for makeprompt 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.