Skip to main content

Bash-like interactive mode extensions for the xonsh shell.

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

Note

We're not recommend to use this xontrib (see issues section). Use it carefully only if you have very strong muscle memory after hundred of years using Bash or for the education reasons and demonstration how agile is xonsh shell.

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:

Added Meaning
!! Get the last command.
!^ Get the first argument from the preceding command.
!$ Get the last argument from the preceding command.
!* Get all argument from the preceding command.
alias Add alias.
export NAME=Peter Setting an environment variable.
shopt -s dotglob Globbing files with * or ** will also match dotfiles, or those "hidden" files.
complete Show list of completers.
set <-e/+e> Cause a failure after a non-zero return code.
set <-x/+x> Turns on tracing of source code lines during execution.
unset NAME Unsetting/deleting an environment variable.

See also Bash to Xonsh Translation Guide.

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. If you're using bashisms and faced with issues try the same in xonsh --no-rc mode before reporting the issue.

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.

Metadata

Release files for xontrib-bashisms 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xontrib-bashisms 0.0.5
File Size Uploaded Provenance Actions
xontrib-bashisms-0.0.5.tar.gz 5.6 kB Without provenance Details for xontrib-bashisms-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xontrib-bashisms 0.0.5
File Interpreter ABI Platform Actions
xontrib_bashisms-0.0.5-py3-none-any.whl Python 3 none any Details for xontrib_bashisms-0.0.5-py3-none-any.whl

Total release size: 11.3 kB

Release files / xontrib-bashisms-0.0.5.tar.gz

Download URL xontrib-bashisms-0.0.5.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5646d4df81fb8d89b2de370e65aba50a2bcbd691321b4d524015c2da42e1b682
BLAKE2b-256 checksum
How to use checksums
3dca1d754312e135f4aff7cd6934d7810db0ee8dde0dcd3c94478c0e26e6e652
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / xontrib_bashisms-0.0.5-py3-none-any.whl

Download URL xontrib_bashisms-0.0.5-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63513e396e31f14c62940c9341d843f8fab838f96536e1eddb7ec9671ea5f78b
BLAKE2b-256 checksum
How to use checksums
9a36bcbb9e8641f3ac47ca51109cb6405a31accab8b7cdf157d70dd44e54cc79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for xontrib-bashisms 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page