4 ms·
By python-sh do you mean http://amoffat.github.io/sh/ http://amoffat.github.io/sh/ ?
by jimmcslim 12y ago
By python-sh do you mean http://amoffat.github.io/sh/ http://amoffat.github.io/sh/ ?
- Crito 12y agoYes I do. So I tried this out briefly and it works, but without additional work it isn't very convenient. Obviously tab-completion of paths/programs/arguments doesn't work since Hy's REPL doesn't do those things (by default anyway). The way python-sh's imports work is also a bit inconvenient; either you need to explicitly import the command you want to run, or you need to prepend it with 'sh.' (`sh.git` runs git for example). A custom REPL might be a good way to resolve these issues, I'm going to have to put more work into understanding how both of these things work first though. Nevertheless, I think the idea has promise.