Skip to main content

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

  1. To install use pip

pip3 install xontrib-add-variable
  1. Add on ~/.xonshrc

1 xontrib load add_variable

Contributing

TBD

Example

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

1 from time import strftime
2 
3 def timeNow():
4     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-0.1.0.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

xontrib_add_variable-0.1.0-py3-none-any.whl (3.4 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