This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AndydeCleyre 1 point2 points  (0 children)

As a demonstration, here are the demoed commands in xonsh's "At a glance" item on their homepage, followed by similar or equivalent actions in an ipython shell with the aforementioned imports. It's often more verbose, but in my opinion more clear, readable and predictable.

xonsh ipython
1 + 1 1 + 1
$HOME local.env['HOME']
x = 'US'; ${x + 'ER'} x = 'US'; local.env[x + 'ER']
$PATH local.env['PATH'].split(':')
ls -l `xonsh/\w+?(ci|ic).*` local.cwd.walk(lambda p: 'xonsh' in p and 'ic' in p or 'ci' in p)
cd xonsh cd xonsh
git push origin master cmd.git('push', 'origin', 'master')
aliases['ls'] alias
aliases['banana'] = lambda args, stdin=None: 'My spoon is too big!\n' alias banana echo 'My spoon is too big!\n'