3 ms·
This is great. When dealing with bash stupid-isms I've always thought it would be awesome to have a shell with Python syntax. The tough part is figuring out how
by bkeroack 12y ago
This is great. When dealing with bash stupid-isms I've always thought it would be awesome to have a shell with Python syntax. The tough part is figuring out how to combine Python with "normal" shell commands in a clean, intuitive manner but it looks like Xonsh has gone a long way towards solving that!
Just installed on my personal Macbook. Will see how it goes.
- meddlepal 12y agoI agree, this is awesome. I hate dealing with bash but it's pretty common when you're DevOps.
- spystath 12y agoYou could already do some minimal shell-like scripting with ipython[1]. Just put your ipython-flavored script in a file with .ipy extension an call it with ipython, or just use #!/usr/bin/ipython as a shebang. #!/usr/bin/ipython files = !ls for f in files: print(f) That being said, it is a bit clunky to use since it's not a proper shell, so xonsh is definitely a very welcome improvement. [1]: http://ipython.org/ipython-doc/stable/interactive/shell.html http://ipython.org/ipython-doc/stable/interactive/shell.html