This package allow add new variable.
Project description
Version number: 0.1.0
Author: Erick Tucto
Overview
This package allow add new variable.
Installation / Usage
To install use pip
pip3 install xontrib-add-variable
Add on ~/.xonshrc
1 xontrib load add_variable
Contributing
TBD
Example
On ~/.xonsh/add_variable.xsh or ~/.xonsh/add_variable.py
1from time import strftime
23
def timeNow():
4return 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-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ce8b92cf5c275ec4bdf3a8641007727562653335933ac17f27779eb48eb193 |
|
MD5 | 448c859a9f87b03ec23eb143aa8faa7d |
|
BLAKE2b-256 | f90c504a5d1d06431558309c8b4e399962d0a6a3767636ba3710122491285d68 |
Close
Hashes for xontrib_add_variable-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d1a457d2a285c7c6ac71dd1475b5f4cfd1f2bdbbc6f93b8065dac1686dbe997 |
|
MD5 | a0ebcb1a82c404ec022dc3f1ed7452f1 |
|
BLAKE2b-256 | 9ffb1036029373e96611f2aeeba31d95db97749f7932724a4e1e1f279382364a |