this post was submitted on 19 Dec 2025
170 points (98.3% liked)

linuxmemes

28504 readers
1269 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     
    all 29 comments
    sorted by: hot top controversial new old
    [–] nialv7@lemmy.world 2 points 2 hours ago

    I once had the misfortune of having to read zsh source code....

    In unrelated news I no longer use zsh.

    [–] rtxn@lemmy.world 52 points 8 hours ago (1 children)

    People with deep knowledge of string instruments and/or shell languages are rapidly approaching your location.

    lmao. know anyone who's hiring a terminal junkie? i need to get paid to use my computer all day fr

    [–] BoosBeau@lemmy.world 6 points 6 hours ago

    But... they literally used that post to tell people they play both the violin and the viola...

    [–] hellfire103@lemmy.ca 1 points 4 hours ago* (last edited 4 hours ago)

    I like yash

    [–] lena 11 points 8 hours ago (2 children)

    I just use fish, I never really had the need for ultra-customization. But I do admire stuff from places like !unixporn@lemmy.world.

    [–] KSPAtlas@sopuli.xyz 1 points 3 hours ago

    I use nushell, returning to a normal shell is starting to feel weird ngl

    [–] alias_qr_rainmaker@lemmy.world 1 points 8 hours ago (1 children)

    i need to get familiar with fish. i've studied the syntax but i still have hardly used it, and if you really want to learn how to code something, you gotta keep typing it until it's in your muscle memory.

    [–] herzenschein@pawb.social 8 points 7 hours ago (3 children)

    While I do like fish syntax, you don't really need to learn it. You can just use it for your interactive use in the terminal while writing your scripts in bash.

    [–] null@piefed.nullspace.lol 2 points 5 hours ago

    This is the way. I've never even attempted to script anything in fish, but it's just a great interactive shell OOTB. I think at most I have a colorscheme and an alias or 2.

    [–] Pika@sh.itjust.works 1 points 6 hours ago* (last edited 6 hours ago) (1 children)

    this is basically what I did until I dropped fish for zsh because of annoyances with how it functioned.

    Scripting in fish is obnoxious though if you learned bash first, heavily recommend staying far away πŸ˜‚

    Hard recommend staying in bash or at least zsh, at least you maintain compatibility with others if you ever decided to share your scripts.

    I tried using zsh again after having used fish for a while, but I just couldn't do it. Trying to configure the ergonomics that fish ships OOTB into zsh was a pain, and I couldn't get it to a satisfactory level.

    Regarding scripts, you don't have to use the fish scripting language. Just keep writing your scripts in Bash, and as long as you use a shebang, it'll work fine in fish.

    [–] lena 1 points 7 hours ago

    Yeah that's what I do to, I don't need to write complex scripts anyway. Fish's syntax seems interesting though.

    [–] corsicanguppy@lemmy.ca 4 points 6 hours ago (1 children)

    Dude, people still think vi is important skills. I know 'ed', so the rest is just a waste.

    For that matter, just use cat, and be free of vietnam-era cult shit.

    [–] alias_qr_rainmaker@lemmy.world 1 points 6 hours ago (1 children)

    My favorite use of cat is hiding malware in images and gifs. Don't worry, I've never actually deployed any malware over social media, I just know how to use cat (and a few other things) to do it.

    [–] ReginaPhalange@lemmy.world 5 points 6 hours ago (2 children)

    Any writeup about how this works?

    [–] rtxn@lemmy.world 1 points 26 minutes ago* (last edited 24 minutes ago)

    The technique is called steganography, and the product is called stegomalware. The payload is concealed as part of some legitimate file, like the pixel data of an image file. It requires the reader software on the targeted system to already be infected, or to have a vulnerability that the payload can exploit.

    Low Level video: https://www.youtube.com/watch?v=89ysXVYH2Sk (one more reason to hate Webp)

    Quick example by John Hammond: https://www.youtube.com/watch?v=JBIbL8zwZOs

    [–] SteveTech@aussie.zone 1 points 1 hour ago

    Some image formats will ignore junk data after the image. So you can probably run cat image.png message.txt to embed text in image files, although I haven't tried this myself.

    [–] nymnympseudonym@piefed.social 12 points 9 hours ago (1 children)

    zsh autocomplete and color defaults were presumably set up by an lsd fan

    [–] alias_qr_rainmaker@lemmy.world 6 points 9 hours ago (2 children)

    i'm all about oh-my-zsh. I mostly like it because it loads a random theme every time you run source ~/.zshrc, so you get exposed to a lot of different themes, so you can pick one that looks really nice. The one I've gone with was the most minimalist theme I could find. export ZSH_THEME="miloshadzic"

    [–] rtxn@lemmy.world 3 points 7 hours ago (1 children)

    OMZ is overrated. It's too much code for too little effect when most of the plugins boil down to aliases and prompt themes, and all you have to do is source them in your .zshrc anyway.

    I am by no means saying that the plugins and themes are useless. I'm saying that OMZ is unnecessary.

    the only thing i like about oh-my-zsh is the random themes, i seriously have no idea what else it does

    [–] fonix232@fedia.io 4 points 9 hours ago (2 children)

    Meh, I find OMZ a bit too opinionated.

    antidote with the right plugins + starship with the right prompt builder beats anything.

    [–] prettybunnys@piefed.social 4 points 8 hours ago (2 children)
    [–] fonix232@fedia.io 1 points 44 minutes ago

    In my opinion - and yes I know it's punny - fish also belongs in the "too opinionated" category.

    It's not a bad shell but overall I found it to be quite reluctant to work the way you want it, if that isn't the way the developer meant it to be used. Which is fine, but again, it means that fish is opinionated.

    [–] wltr@discuss.tchncs.de 1 points 6 hours ago (1 children)

    I tried to learn it, but failed. Looks like I’d love to use both, but I have no idea where to start. Any suggestions?

    [–] prettybunnys@piefed.social 1 points 6 hours ago

    It might be easiest to work backwards with starship, see how it integrates with fish then see how to run fish.

    Then install fish, add starship to it.

    99% of my usage is around how it helps me navigate the terminal, I use bash for all my scripts lmao

    I mean, I don’t think I’d ever voluntarily admit that I can read that stupid C clef…