Live data from Hacker News

Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

grimreaper.icu

11–20 of 47 posts

Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

#12
I'm seeing some great technical questions about process lifecycles and Rust invariants. To clarify: regarding job control, when a process is recalled, it currently rejoins the foreground process group. I'm leveraging Rust's ownership model to ensure FDs are closed properly, but I'm still refining the signal semantics for SIGTSTP.

Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

#15

Could you explain the purpose of mkcd?

It’s a shortcut

Its purpose is to combine mkdir -p and cd into a single atomic-like action. Instead of typing: mkdir -p my_project && cd my_project

You simply run: mkcd my_project

It's designed to reduce friction during development, especially when you're frequently creating new nested directory structures.

Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

#17

Could you explain the purpose of mkcd?

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.

Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

#18
post #17

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.

I love the concept, very good yet simple idea ! I'll steal it for my aliases.

Re: Show HN: Grsh – A high-performance shell for FreeBSD written in Rust

#20
post #17

Earlier 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.

I love the concept, very good yet simple idea ! I'll steal it for my aliases.

Go ahead and 'steal' away! That’s the beauty of open source.

I actually built it into the shell precisely because I was tired of managing those aliases across different machines. Glad you found it useful!

Post reply on HN