4 ms·
Like what? I’d love a stable nushell alternative.
by dubcanada 3y ago
Like what? I’d love a stable nushell alternative.
- hnlmorg 3y agoStable is a problem because a lot of these shells don’t offer any guarantees for breaking changes. My own shell, https://github.com/lmorg/murex https://github.com/lmorg/murex is committed to backwards compatibility but even here, there are occasional changes made that might break backwards compatibility. Though I do push back on such changes as much as possible, to the extent that most of my scripts from 5 years ago still run unmodified. In fact I’ve started using some of those older scripts as part of the automated test suits to check against accidental breaking changes.
- geophile 3y agoCheck out my entry, marcel: https://marceltheshell.org https://marceltheshell.org. E.g., find the newest vlc instance and kill it (a command that an acquaintance needs frequently, for some reason): ps | select (p: p.name == 'vlc') | sort (p: p.create_time) | tail 1 | (p: p.signal(9)) - ps produces a stream of Process objects. - select binds each Process to p, and then selects those whose name is vlc. (Anything in parens is a Python function. You can include or omit "lambda".) - sort by create time, (using a Python function to specify the sort criterion). - tail 1 as in Linux, to get the newest qualifying Process. - Run the function p.signal(9), which kills the Process.