This package allow add new variable.
Project description
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
1 xontrib load add_variable
Contributing
Example
On ~/.xonsh/add_variable.xsh or ~/.xonsh/add_variable.py
1from time import strftime
2from xontrib.add_variable.decorators import variable
34
@variable
5def timeNow():
6return strftime('%H:%M:%S')
On ~/.xonshrc
1xontrib load add_variable
23
$RIGHT_PROMPT = '{timeNow}'
See image
Credits
This package was created with Cookiecutter and the xontrib template
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for xontrib-add-variable-1.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec3d7fc4ca8497adf0d84363220ad0a5186a72a34091e96cb2631db52b3bf49 |
|
MD5 | 567145e56c783af94050cea6e7a5ff2f |
|
BLAKE2b-256 | bf7eeacead8983df804d14a83e2f4e88f42450568b4e4f4bedf26a499789ca99 |
Close
Hashes for xontrib_add_variable-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e68c0eb7b97403fdc4c4803432f8d20252e1fd051aa5c0515ae66e631819d935 |
|
MD5 | 1e8616334260aa3d4241299cee342832 |
|
BLAKE2b-256 | 29fdc7c112b8e9f2e2051a10c6477dd8d7d7c77219afc648d7e37f06872b9fae |