Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rpdelaney/xontrib-brace-expansion

Implements simple brace expansion in xonsh
https://github.com/rpdelaney/xontrib-brace-expansion

xonsh xontrib

Last synced: 3 months ago
JSON representation

Implements simple brace expansion in xonsh

Awesome Lists containing this project

README

        

xontrib-brace-expansion
=======================
|VERSION|

.. |VERSION| image:: https://img.shields.io/pypi/v/xontrib-brace-expansion
:target: https://pypi.org/project/xontrib-brace-expansion

Implements simple brace expansion:

.. code:: console

@ echo a{d,c,b}e
ade ace abe

Nested expansion is not supported:

.. code:: console

@ echo /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}
SyntaxError: Unmatched "}" at line 1, column 16

See also:

* https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html

Usage
-----

.. code-block :: console

xpip install xontrib-brace-expansion
xontrib load brace_expansion