Version number: 1.1.1
Author: Erick Tucto
Overview
This package allow add new variable to $PROMPT_FIELDS and create new aliases.
Installation / Usage
To install use pip
pip install xontrib-add-variable
Add on ~/.xonshrc
Now you can create new variables to $PROMPT on ~/.xonsh/add_variable.xsh, also create new aliases, please see Example or my wiki
1 xontrib load add_variable
Contributing
Example
On ~/.xonsh/add_variable.xsh or ~/.xonsh/add_variable.py
1from time import strftime2from xontrib.add_variable.decorators import variable34@variable5def timeNow():6return strftime('%H:%M:%S')
On ~/.xonshrc
1xontrib load add_variable23$RIGHT_PROMPT = '{timeNow}'
See image
Credits
This package was created with Cookiecutter and the xontrib template
Metadata
Release files for xontrib-add-variable 1.2.0
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 |
|---|---|---|---|---|
| xontrib-add-variable-1.2.0.tar.gz | 2.2 kB | Without provenance | Details for xontrib-add-variable-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xontrib_add_variable-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for xontrib_add_variable-1.2.0-py3-none-any.whl |
Total release size: 5.8 kB
Release files / xontrib-add-variable-1.2.0.tar.gz
| Download URL | xontrib-add-variable-1.2.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5fca7247bf08e6733c3a89621914ca227c665427171c99ab7e0b62e49eaaf14
|
|
BLAKE2b-256 checksum How to use checksums |
317b1f494223e5829f90a1354e4c43e8f5c8b61c504f32a67578998f72ed244f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / xontrib_add_variable-1.2.0-py3-none-any.whl
| Download URL | xontrib_add_variable-1.2.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3276e49c42fe49a3f146d23e5127da96b15701724067c408607184fa35eb75ae
|
|
BLAKE2b-256 checksum How to use checksums |
04b05246b4fc11df5a23bbdb0b4839904e1cbf4ddf7dbf8c1589d89591effbda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for xontrib-add-variable 1.2.0
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.