Skip to main content

Bash-like interactive mode extensions for the xonsh shell.

Project description

Bash-like interactive mode extensions for the xonsh shell.

If you like the idea click ⭐ on the repo and tweet.

Installation

To install use pip:

xpip install xontrib-bashisms
# or: xpip install -U git+https://github.com/xonsh/xontrib-bashisms

Usage

xontrib load bashisms

Enables additional limited Bash-like syntax and commands while at the interactive command prompt:

  • !!, !$, !^, !*
  • alias
  • export
  • unset
  • set
  • shopt
  • complete
  • set <-e|+e|-x|+x>

Known issues

The xontrib-bashisms appeared in the beginning of xonsh history as part of the default xontribs. It has issues and we recommend to use xontrib-sh instead.

Threading issues

Because of xontrib-bashisms sets THREAD_SUBPROCS=False there are issues around the threading could appear.

Only interactive mode

The xontrib features are implemented as on_precommand events and these additions do not affect the xonsh language when run as script. That said, you might find them useful if you have strong muscle memory in interactive mode.

Debug

This xontrib may modify user command line input to implement its behavior. To see the modifications as they are applied (in unified diffformat), please set $XONSH_DEBUG to 2 or higher.

See also

Credits

This package was created with 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-bashisms-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

xontrib_bashisms-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file xontrib-bashisms-0.0.2.tar.gz.

File metadata

  • Download URL: xontrib-bashisms-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for xontrib-bashisms-0.0.2.tar.gz
Algorithm Hash digest
SHA256 01da353a3dcbf8eb7ab4779b6c1036738724180f1ccd41a65196220b055caacf
MD5 8a92a67e853577a25f55a11c9d482e06
BLAKE2b-256 ff45410dd95d831eb272ae61ae657b512e200be4f7635b94d9eaa16f5bab745b

See more details on using hashes here.

File details

Details for the file xontrib_bashisms-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for xontrib_bashisms-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df68f62e667d96060ffb2d4f887340b0497d3a6808810213020e96f90aa8a028
MD5 9c33a27ce07a25ba353aa8701cb353c9
BLAKE2b-256 e8f20736c1f064d03ce3e3bcf9da2f0b37b88e0ffb2ca0ef7dc09753fba04de4

See more details on using hashes here.

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