Skip to main content

This package allow add new variable.

Project description

Version number: 1.1.1

Author: Erick Tucto


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


  1. Erick Tucto


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

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

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



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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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