Skip to main content

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

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xontrib-add-variable-1.2.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

xontrib_add_variable-1.2.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-add-variable-1.2.0.tar.gz.

File metadata

  • Download URL: xontrib-add-variable-1.2.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for xontrib-add-variable-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a5fca7247bf08e6733c3a89621914ca227c665427171c99ab7e0b62e49eaaf14
MD5 4649a5897c6016f8d1b6b59df1c2afbb
BLAKE2b-256 317b1f494223e5829f90a1354e4c43e8f5c8b61c504f32a67578998f72ed244f

See more details on using hashes here.

File details

Details for the file xontrib_add_variable-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: xontrib_add_variable-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for xontrib_add_variable-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3276e49c42fe49a3f146d23e5127da96b15701724067c408607184fa35eb75ae
MD5 5fc074aa5aa6aef490c862c28676dd40
BLAKE2b-256 04b05246b4fc11df5a23bbdb0b4839904e1cbf4ddf7dbf8c1589d89591effbda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page