From ebb3b9b33d4eb700ea5e4d48753283b32fd08c3f Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Thu, 8 Aug 2024 15:29:18 +0200 Subject: [PATCH] Update README.rst: more examples --- README.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 19d19d7f5..3169d483e 100644 --- a/README.rst +++ b/README.rst @@ -44,6 +44,7 @@ xonsh p'/etc/passwd'.read_text().find('root') + xontrib load dalias id = $(@json docker ps --format json)['ID'] - .. code-block:: python @@ -52,6 +53,7 @@ xonsh echo @(name) > /tmp/@(name) ls @(input('file: ')) + touch @([f"file{i}" for i in range(0,10)]) aliases['e'] = 'echo @(2+2)' aliases['a'] = lambda args: print(args)