Unix shell in Rust - Rust

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

A lot of great new/rethought Unix utilities have been written in Rust in recent years (fzf, rg, fd, dust etc) and so I have this naive gut feeling that a shell written in Rust might be rather good.

https://lobste.rs/s/bhqflt/alternative_shells

TheMatten

nushell is really nice - has structured data, combinators for manipulating tables, great type errors, good integrated documentation and even support for generating it, an recently got support for custom functions, which, similarly to PowerShell, can define named arguments and flags
Though it's still in alpha state, so there're some bugs here and there

Sridhar Ratnakumar

@TheMatten What are your thoughts on the state of alternative shells? Time to experiment and switch now, or wait till the time comes when one of them matures enough to be a solid bash replacement?

TheMatten

Depends on shell - Fish is already 16 years old, so there isn't much that would be missing from it, while Nu shell is still in alpha/beta stage

Sridhar Ratnakumar

nu does interesting things. like real-time syntax highlighting as you type the command (before hitting Enter). its open command also highlights the file based on syntax

Sridhar Ratnakumar

where does nu stand on interactive CLI apps UX? any builtin functions to say script popups, dialog input, etc.?

TheMatten

It's getting there when it comes to scripting - but commands showing GUI sounds like something more fitting for a separate CLI utility

TheMatten

https://elv.sh/ seems to be another interesting one BTW

Kampouse

Elvish look awesome