Earlier quoted context omitted.
Not the author, but my first guess is to create a folder and cd into it with just one command instead of 2 with the said argument, isn't it ?
Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it.
Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
41–47 of 47 posts
Is it not possible to realize it with alias?
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#42Earlier quoted context omitted.
Not the author, but my first guess is to create a folder and cd into it with just one command instead of 2 with the said argument, isn't it ?
Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it.
[deleted]
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#43Earlier quoted context omitted.
Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it.
Is it not possible to realize it with alias?
Great question! While you could technically hack a similar behavior using a shell function (not a simple alias, as aliases don't handle positional arguments well), grsh implements mkcd as a native builtin.
By baking it into the shell in Rust, I can ensure atomic execution and better error handling without relying on the user's specific .bashrc or .zshrc hacks. It's about providing a 'batteries-included' experience where common workflows are first-class citizens of the shell itself.
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#44Great Shell!
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#45Great Shell!
Thanks
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#46Is it in freebsd repo?
Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust
#47Is it in freebsd repo?
It's not in the official repo just yet, but the Port is already under review on FreeBSD Bugzilla! I’m currently working through the review process to get it merged into the official ports collection. In the meantime, you can build it from source via Cargo or check out the progress on the Bugzilla ticket.