mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
Update README.rst
This commit is contained in:
parent
a1846d0579
commit
2b0012a5d5
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ xonsh
|
||||||
|
|
||||||
p'/etc/passwd'.read_text().find('root')
|
p'/etc/passwd'.read_text().find('root')
|
||||||
|
|
||||||
|
xontrib load dalias
|
||||||
id = $(@json docker ps --format json)['ID']
|
id = $(@json docker ps --format json)['ID']
|
||||||
|
|
||||||
- .. code-block:: python
|
- .. code-block:: python
|
||||||
|
@ -52,6 +53,7 @@ xonsh
|
||||||
echo @(name) > /tmp/@(name)
|
echo @(name) > /tmp/@(name)
|
||||||
|
|
||||||
ls @(input('file: '))
|
ls @(input('file: '))
|
||||||
|
touch @([f"file{i}" for i in range(0,10)])
|
||||||
|
|
||||||
aliases['e'] = 'echo @(2+2)'
|
aliases['e'] = 'echo @(2+2)'
|
||||||
aliases['a'] = lambda args: print(args)
|
aliases['a'] = lambda args: print(args)
|
||||||
|
|
Loading…
Add table
Reference in a new issue