this post was submitted on 24 Sep 2025
1291 points (98.0% liked)

Programmer Humor

26691 readers
1333 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] janAkali@lemmy.sdf.org 4 points 1 week ago* (last edited 1 week ago) (5 children)
  • zsh-autosuggestions
  • history | fzf
  • alias cat="bat --plain --theme=gruvbox-dark"
[–] zarkanian@sh.itjust.works 6 points 1 week ago* (last edited 1 week ago) (4 children)

Aliasing cat or any other ubiquitous shell utility to a replacement is a mistake. Garuda did this, and it was driving me crazy why cat was giving me errors. Turns out that they had aliased bat to cat, and since bat is a different program, it didn't work in exactly the same way, and an update had introduced some unexpected behavior.

Drop-in replacements are dumb. Just learn to use a different command.

[–] janAkali@lemmy.sdf.org 3 points 1 week ago* (last edited 1 week ago) (3 children)

I think it's ok to add this in a personal .zshrc, not on a distro level:

If it breaks something - I'd probably know why and can easily fix it by removing alias/calling cat directly.

Also, scripts almost always use bash or sh in shebang, not zsh. So it only triggers if I type cat in terminal.

[–] crater2150@feddit.org 2 points 6 days ago

Also, even zsh scripts don't read your .zshrc by default.

load more comments (2 replies)
load more comments (2 replies)
load more comments (2 replies)