Skip to content

Trying to Rust-ify my system as much as possible. Is installing a new shell and a new terminal easy?

Is it literally just "install mynewshell" "uninstall bash".

"install alacritty" "uninstall xfce terminal"

Someone mentioned that "coreutils" has been rewritten in Rust, but "coreutils" is a scary word and "uninstall coreutils" sounds like "bye bye system and all my data".

Thanks for your help!

0 points23 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 28% up
Kind
Text
ID
vmoeph

Author

13
posts
14
comments
0
media
View profile

23 comments

You can't uninstall bash, you will break half your system with it. You can use a different shell as your interactive shell using chsh. But also, "Rust" does not mean "better", and it might be a good idea to stick to a more conventional setup at least while you're new.

21 points

Glad I asked!

So are you saying that I must install this helper program first called "chsh", then install whatever my new shell is?

How do I indicate that I would prefer everything to use the new shell?

Thanks.

1 points

chsh is already installed on your system. It will not change the shell used for "everything", and attempting to do that will most likely break your system. It will change the default shell that runs when you start an interactive session, either in a TTY or a terminal emulator.

7 points

As much as I love rust as a language here is why you shouldn't do this:

  1. You sound like a beginner, and 99% of the documentation is written with the standard utils in mind. Meaning if you replace them with rust versions you will not only need to learn how to use the rust version, but also the old version, so you know what to do when reading documentation that uses standard tools.
  2. A lot of the replacements people have written in rust are not as mature as the old tried and true standardized tools. you are more likely to run into bugs or missing features.
    As an example, I tried out a decompression tool in rust and there was a bug in it that ended up deleting my entire download directory. Thankfully it wasn't an important folder.
  3. Rust version doesn't automatically mean faster/better. Most of the time the rust version only matches or has slightly less performance. Usually the only benefit is better ergonomics (like for ripgrep or fd).

If I were you I would stick to the standard tools, and maybe replace one or two things as you go and see what works for you and what doesn't.
When you're ready to try some new tool, you can pick something from this list: https://github.com/unpluggedcoder/awesome-rust-tools

12 points

I am curious... What is the point? Rust is just a language, if the program is good or bad depends more on people writing it, then the language it is written in. I see language selection as engineering decision, not something user should care about. Yeah, sometimes it can make difference, when something pulls loads of dependencies, because it is only program i use in given language. But that is something different then quality of the program itself.

4 points

Well, if you want to go that far, you should check manual, infopage and wiki of the package to make sure you won't break anything.

3 points

Yeah I totally get there is a LOT of documentation available.

That said, I'm sure I'm not the first person to try this and you all usually have a wonderful habit of quickly condensing down what to do here and cutting through all the other stuff that might mess someone up.

1 points

Is there a particular reason to switch to rust coreutils? It feels like a lot of effort for no change - the idea of the rewrite is to have coreutils be available cross-platform as a single source package so the tools that rely on it can function elsewhere.

2 points

Consider the Nu-shell (haven’t tried it personally, I use fish), Paru (pacman helper written in Rust), Exa (ls alternative), ripgrep (grep alternative)

I wouldn’t remove the originals though, just install these on top, and set aliases

1 points

Why rust?

You cannot delete bash or coreutils. (You can force them, but say bye-bye to a working system)

You should not use the rust coreutils.

For the terminal itself, go ahead.

If you want to CHANGE your shell, that's fine. Just install the new shell and chsh -s /usr/bin/<shell name>.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.