Skip to main content

Version number: 1.1.1

Author: Erick Tucto

Overview

This package allow add new variable to $PROMPT_FIELDS and create new aliases.

Installation / Usage

  1. To install use pip

pip install xontrib-add-variable
  1. 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

  1. Erick Tucto

Example

  1. On ~/.xonsh/add_variable.xsh or ~/.xonsh/add_variable.py

1 from time import strftime
2 from xontrib.add_variable.decorators import variable
3 
4 @variable
5 def timeNow():
6     return strftime('%H:%M:%S')
  1. On ~/.xonshrc

1 xontrib load add_variable
2 
3 $RIGHT_PROMPT = '{timeNow}'
  1. See image

terminal.png

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)

Source distribution for xontrib-add-variable 1.2.0
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)

Table of built distributions (wheels) for xontrib-add-variable 1.2.0
File Interpreter ABI Platform Actions
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page