this post was submitted on 21 Sep 2024
218 points (97.0% liked)

Asklemmy

47571 readers
858 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 6 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 3 points 6 months ago (1 children)
[โ€“] [email protected] 3 points 6 months ago

Zoxide, dust, fd, rg, btm, tokei. So many newer Rust tools that are way better than the old stuff.

[โ€“] [email protected] 1 points 7 months ago
[โ€“] [email protected] 4 points 7 months ago* (last edited 7 months ago)

I really like how nushell can parse output into it's native structures called tables using the detect command.

Unlike string outputs, tables allow for easy data manipulation through pipes like select foo will select foo key and you can filter and even reshape the datasets.

This is great if you need to work with large data pipes like kuberneters so you can do something like:

kubectl get pods --all-namespaces | detect columns | where $it.STATUS !~ "Running|Completed" | par-each { |it| kubectl -n $it.NAMESPACE delete pod $it.NAME }

This looks complex but it parses kubectl table string to table object -> filters rows only where status is not running or completed -> executes pod delete task for each row in parallel.

Nushell take a while to learn but having real data objects in your terminal pipes is incredible! Especially with the detect command.

There's are few more shells that do that though nu is the most mature one I've seen so far.

[โ€“] [email protected] 6 points 7 months ago (1 children)
[โ€“] [email protected] 1 points 7 months ago (1 children)

Neofetch

I just think it's neat.

[โ€“] [email protected] 1 points 6 months ago* (last edited 6 months ago) (1 children)

It's been abandoned btw. People recommend to switch to alternatives. Fastfetch and hyfetch seem to be the best ones rn.

Though I can't confirm as I wrote my own minimal fetch

[โ€“] [email protected] 1 points 6 months ago

Works just fine for me

[โ€“] [email protected] 2 points 7 months ago

rsync

I use it to backup important work to an external drive.

[โ€“] [email protected] 1 points 7 months ago
[โ€“] [email protected] 6 points 7 months ago
[โ€“] [email protected] 3 points 7 months ago (1 children)
[โ€“] [email protected] 2 points 7 months ago

Control + D

[โ€“] [email protected] 6 points 7 months ago

I've recently started using tmux when starting a new SSH session to try to build the habit.

https://github.com/tmux/tmux/wiki

load more comments
view more: next โ€บ