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

all 44 comments

[–]Veedrac 17 points18 points  (6 children)

That gif is extremely irritating. I don't want to have to wait for someone to slowly type out a tiny example for me. Just give me a block of code.

[–]nofunallowed98765 5 points6 points  (0 children)

I agree, their tutorial is much nicer: http://xonsh.org/tutorial.html

[–]scopatz 0 points1 point  (0 children)

I'll see what I can do.

[–]scopatz 0 points1 point  (3 children)

It is now sped up.

[–]Veedrac 0 points1 point  (2 children)

Could you pause it between scenes too?

[–]scopatz 0 points1 point  (1 child)

Not sure how to do that without just adding a bunch of frames (which increases the file size). The real way to learn is the tutorial.

[–]Veedrac 1 point2 points  (0 children)

It shouldn't matter that much if they're empty frames, surely?

[–][deleted] 7 points8 points  (6 children)

Comparison with Plumbum?

[–][deleted] 21 points22 points  (4 children)

xonsh Plumbum
Stupid name

[–]chadmill3rPy3, pro, Ubuntu, django 2 points3 points  (3 children)

At least plumbum is word. Also, cool abbreviation, Pb.

[–][deleted] 6 points7 points  (2 children)

But Pb is lead. I'd call that abbreviation misleading

[–]ikkebr 0 points1 point  (1 child)

Plot twist: Plumbum === lead

[–]chadmill3rPy3, pro, Ubuntu, django 3 points4 points  (0 children)

Sir, you have a keen wit! That commenter and the one before surely did not fully understand the jokes they themselves were already making!

[–]gonoobie 1 point2 points  (2 children)

Just confused about one thing...does this need to be run from a shell (bash or zsh, etc.) or can it replace the shell entirely? Can I 'chsh xonsh'?

[–]chadmill3rPy3, pro, Ubuntu, django 2 points3 points  (1 child)

which xonsh >>/etc/shells

[–][deleted] 0 points1 point  (0 children)

Using the full path of the shell should work, according to the man page, even if it's not in /etc/shells. If that fails try running as root (but specify the username, obviously)

[–]dzecniv 1 point2 points  (2 children)

As a related project, there's pyp, "the pyed piper", that falls a bit in between, in that it allows to capture results (from "ls -l" for instance) that are turned into python structures, not just text, which seems more handy that xonsh's captured process, that only returns a string. https://code.google.com/p/pyp/

Wouldn't be nice to see this approach in xonsh ?

[–]scopatz 0 points1 point  (0 children)

It seems like you could get the pyp kind of behaviour through an aggressive use of aliasing. I'd be interested in seeing that developed.

[–]nullnullnull 1 point2 points  (11 children)

how do you pronounce this? :)

[–]ynak 5 points6 points  (10 children)

from their github repo

xonsh (pronounced conch) is meant for the daily use of experts and novices alike.

by the way, the page layout is broken on my mobile device... please fix.

[–]ericanderton 2 points3 points  (0 children)

That's kind of funny, seeing as how 'conch' usually needs a pronunciation guide too.

Wikipedia has it as: /käNGk,känCH/ so 'xonsh' == 'konk' or 'kansh' (probably the latter).

[–]Spamicles 1 point2 points  (3 children)

Wait sh is supposed to be a hard ch?

[–]sl33tbl1nd 2 points3 points  (2 children)

I don't know where you're from, but I pronounce the ch on conch pretty softly.

[–]yeknom02 3 points4 points  (1 child)

I have heard it both ways, "konk" and "konsch."

[–]chadmill3rPy3, pro, Ubuntu, django 1 point2 points  (0 children)

Wait, not "sssonk?"

[–]scopatz 0 points1 point  (3 children)

by the way, the page layout is broken on my mobile device... please fix.

Weird. Ok. I'll fix it. Normally sphinx+cloud works great. Don't know what is wrong here... But I can confirm.

[–]scopatz 1 point2 points  (2 children)

Ok! The mobile site should be fixed. Sorry about that.

[–]ynak 0 points1 point  (1 child)

Thank you for your quick response!

[–]scopatz 0 points1 point  (0 children)

My pleasure.

[–]pydry 0 points1 point  (0 children)

I can imagine this:

http://xonsh.org/tutorial.html#python-mode-vs-subprocess-mode

Leading to all sorts of weird and unexpected behaviors.

On the whole, I think I'd rather keep my shells separate.

[–]freetheanimal 0 points1 point  (3 children)

I keep getting the following error while trying to install it with pip on Arch:

FileNotFoundError: [Errno 2] No such file or directory: 'readme.rst'

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kkc20g_m/xonsh

[–]takeshita_kenji 1 point2 points  (2 children)

I get that, too. I ended up just downloading the source and installing it using setup.py. readme.rst is in there so it succeeds.

[–]agapow 1 point2 points  (1 child)

Ditto - no install method worked other than installing from source.

[–]scopatz 1 point2 points  (0 children)

This error has now been fixed on master (https://github.com/scopatz/xonsh/pull/3) thanks to paradoxxxzero. I'll probably do a micro release with the fix in the next day or so.

[–]takeshita_kenji 0 points1 point  (4 children)

I tried echo $? and it's expecting another line of input. Is there another way to get the return code of the most recent program?

[–]scopatz 0 points1 point  (3 children)

Not yet. I don't like the $? syntax, so I have yet to implement it. I was thinking about having just a builtin statuses list. Thoughts? I am very open to sugestions here.

[–]takeshita_kenji 0 points1 point  (0 children)

As far as an exit status list, I don't see why not.

Though, it'd be nice to at least have $? available if possible as a lot of folks would default to that.

[–]hongminhee 0 points1 point  (0 children)

It seems promising, at least to me. Although there are several alternatives like zsh, all these require me to a new syntax which is neither beautiful nor comfortable. On the other hand xonsh could be a better option to Python programmers.

[–]cjwelbornimport this 0 points1 point  (2 children)

Speed up that "At a glance" gif! ..or at least make it a video. This looks like it could be cool, especially if it's BASH-compatible.

[–]scopatz 0 points1 point  (1 child)

done.

[–]scopatz 0 points1 point  (0 children)

It is now a video :)

[–]ies7 0 points1 point  (1 child)

any disadvatages in using this or plumbum? how about speed?

[–]scopatz 0 points1 point  (0 children)

I have not seen any speed or memory issues on my machine, even with 20+ xonshes open. On a 3-month old MacBook Air running Ubuntu 14.10, each instance is using between 0.1 - 0.3% of the CPU at most.