Christian Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
KillDash9@programming.dev to linuxmemes@lemmy.world · 2 months ago

I can't like the fish

programming.dev

message-square
164
link
fedilink
1

I can't like the fish

programming.dev

KillDash9@programming.dev to linuxmemes@lemmy.world · 2 months ago
message-square
164
link
fedilink
alert-triangle
You must log in or # to comment.
  • obnomus@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I think I’m using fish and it works great, I love alt+s thing and auto complete thingy.

    • Digit@lemmy.wtf
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Huh. Alt+s. I forgot about that. I think maybe something in my tmux config makes it not work. Not to worry, I’ve made use of fish’s abbreviations, and have other nice things, like I type tssr and space, and it types out "time sudo strat -r " for me.

      Well over a decade using fish, and still finding new treats. It’s so cushy out of the box, without even trying to learn it, it’s easy to miss that there’s so much more. I only started using abbr in the past year or so.

    • qwioeue@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      TIL the alt+s thing

      • Gumus@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        https://github.com/nvbn/thefuck

      • SavinDWhales@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        If you’re not using fish: sudo !!

        • Nilz@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Or if you are on ZSH: press escape twice. Does require OhMyZSH with sudo plugin.

        • Sir_Premiumhengst@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Yes.

          But: Bash: alias please=‘sudo $(history -p !!)’ Zsh: alias please=‘sudo $(fc -ln -1)’

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Heh. Good stuff.

    More! ;D I want to see all the shells, characterised so.

    … Fish [over[1]]user here. Ooh, good burn. LOL.

    [1: Not just user. Overuser. I do most of my scripting in fish. Think that’s not overuse yet? … I even wrote my own text editor in fish.]

  • inzen@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    I use fish because it was the default in cachyos and decided to give it a fair shake. I like the built in syntax highlighting and fancy autocomplete but I miss bash scripting and built in commands that replace standard commands can be weird sometimes. I have not tried scripting fish, to lazy to learn yet another scripting language, especially if bash is the (almost) de-facto standard.

    • prole@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I like having fish as an option, but don’t think I’d ever use it as my default.

      If I have a long command that uses long filenames, or I don’t remember the syntax of something, I can just type “fish” and it’ll open up a fish shell.

    • lapping6596@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I’ve been using it for awhile now for the same reason, and think I’m going to switch back to sh as it has too many suggestions which I read and it interrupts my thoughts and slows me down.

    • ferret@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      You can always just continue using bash scripting, with a bash shebang in your scripts, if you miss it

      • Gumus@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        That’s what I do. Fish is great as interactive shell, scripts don’t benefit that much from it and I can use what’s familiar.

  • starik@lemmy.today
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    #computerjoke lol

  • Anafabula@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Nushell <3

    • Scipitie@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I’m so loving it although I’m still having to correct me on even the easiest shit (few hours ago l: invocation with an env var set tona path - “oh right spaces, oh right, path must be in quotes”.

      Still love it, just annoyed by my habit brain

  • Štěpán@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    i use zsh and i’ve been recently told by a friend that i look like this exact guy

  • printf("%s", name);@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    J8KX6XSFoeNACFg.jpg

    • fum@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I was looking for a mention of csh! Senior sysadmin at $DAYJOB uses it still.

      • Peck@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Pretty much the whole semiconductor engineering industry is using it. We’ll actually tcsh but csh

    • Successful_Try543@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      ksh

    • Jerkface (any/all)@lemmy.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      do tcsh

      • urushitan 漆たん@kakera.kintsugi.moe
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        (that’s the actual current maintainer of tcsh and the linux file command lol)

        • printf("%s", name);@piefed.blahaj.zone
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          Sic. I’ve never even tried anything other than bash, but this looks cool!

    • TheRagingGeek@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Similarly ksh

  • negativenull@piefed.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    4SKx3SH0MUE6HYk.jpg

    https://en.wikipedia.org/wiki/KornShell

    • Snot Flickerman@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      alias Da-boom-da-da-mmm-dum-na-ee-ma=sudo rm -rf /

      • heliotrope@retrofed.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Works in ksh93 and mksh. Probably oksh and posh, too.

    • sem@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      That’s what they looked like???

    • daggermoon@piefed.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      I remember making that joke on Lemmy and someone calling me immature lol.

      • mosspiglet@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        The creator of kornshell thought it was funny http://kornshell.com/fun/

      • negativenull@piefed.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        I’m immature then with you!

        • daggermoon@piefed.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 months ago

          A.D.I.D.A.S with a Freak on a Leash

  • abbadon420@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    • cthulhupunk0@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

    • raspberry_confetti@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Big oof

    • germanatlas@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Powershell is probably simultaneously the best and worst thing Microsoft has ever created

      • captain_oni@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        I remember powershell being extremely slow to start on my laptop and sometimes slow to catch up to my typing (and I’m a slooow typist).

        tbf it was the win 8.1 days, dunno if it’s better now.

        Really liked using it tho. At least it used my actual keyboard layout, unlike cmd.

      • Hawke@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Second best. The best was Active Directory.

        • OS2Warp@lemmy.zip
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Tell that to the Linux folks

          https://sh.itjust.works/comment/26521372

    • kn33@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      This but unironically

    • Overspark@piefed.social
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Then give nushell a go. It’s basically a modern implementation of some of the better ideas Powershell had.

      • sem@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        What were those?

        • flying_sheep@lemmy.ml
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          2 months ago
          1. Types.

          You explode lists manually into items when calling commands on a variable list of arguments instead of “quoting variables” to prevent them from exploding.

          Who came up with the bullshit idea that exploding strings into words is such a common use case that this footgun is preferable to have an “explode lists” syntax?

          1. Errors. No more set -euo pipefail; shopt -s lastpipe to beat some semblance of sanity into bash
          • kn33@lemmy.world
            link
            fedilink
            English
            arrow-up
            0
            ·
            2 months ago

            One of the things I really like about PowerShell is the “verb-noun” convention. It makes things a lot easier when learning by examples. Wtf is a sed or an awk? But New-Item -Type Directory oh yeah that makes sense.

            • JackbyDev@programming.dev
              link
              fedilink
              English
              arrow-up
              0
              ·
              2 months ago

              To be fair, the comparison there is mkdir which means make directory, but I don’t doubt there are better examples.

    • apftwb@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Get-OutOfHere

    • ZILtoid1991@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      It even kind of suck as a Windows-only shell…

      • Hawke@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Honestly it’s pretty good, but it’s very verbose in its commands and output.

        The default settings are irritating but it takes only minor tweaks to make it tolerable (mainly fixing the tab completion)

        It’s nicely consistent with its object handling.

        As a windows shell it is head and shoulders above cmd.exe. I’ve thought about using it on Linux but there I like fish better.

    • whoisearth@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Unironically though. It takes time because it’s structurally different than python but it’s fun when you figure it out

  • root@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    telnet

    ⚰️

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    Funny story, in my first years of Linux, I always thought ‘sh’ was the only way to run downloaded programs in the terminal. I must have seen it on some forum and learned it that way. Much later I learned that I could just type this ‘./program’ and run them.

    • pmk@piefed.ca
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      It’s magic

    • rumschlumpel@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Much later I learned that I could just type this ./program and run them.

      TBF that does often require that you chmod +x them. Sometimes, that’s not worth the effort …

  • Girl Named ZERO (she/her)@piefed.zeromedia.vip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I use fish as my shell because it’s the easiest to work with, but I basically always script with sh or sometimes bash

  • Torn Apart By Dogs@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I guess I’m chad. bash ftw. every time. also, this is how you exit vim :q! lol j/k save first tho :wq but really just leave it open and ctrl-z and fg ffs

  • bacon_pdp@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    S is the only shell one needs.

    https://github.com/rain-1/s

  • Omni rizzler@anarchist.nexus
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Fish is the best . Do not listen what other says just because it’s easy to use does not make it a bad tool Also helix better then neovim and emacs
    And zellij better then tmux
    Micro better then nano Jj better then git A LOT

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      still don’t really get along with jj. and why use a tmux-alike when konsole has the same functionality built in?

    • ztwhixsemhwldvka@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Careful brother, they are not ready for the truth.

    • dismay3915@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      You lost me at “helix better than nvim and emacs”

      • pemptago@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        That’s the only one I could confirm, but probably because my config game is weak.

    • mmmm@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Jj better then git A LOT

      Wow, you spelled mercurial really wrong

    • NewOldGuard@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      JJ lacks too many features compared to git, it’s easier to use but just less powerful. I think Helix and Zellij are good for that “batteries included” approach, but neovim and tmux are more powerful and allow much more customization IMO so those tools don’t displace them for me. I think shell choices are less impactful, if you’re writing scripts 90% of the time it’ll have to be bash anyway, use what you like for the interactive shell though.

      • asdfasdfasdf@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        What features is jj missing?

    • ramasses@social.ozymandias.club
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 months ago

      Yes! Helix is such a good editor that doesn’t get enough praise.

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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 of any kind will not be tolerated. This is an LGBTQ+-friendly community – if that is a problem for you, you should leave.
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 figures

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 9 users / day
  • 179 users / week
  • 1.44K users / month
  • 4.15K users / 6 months
  • 0 local subscribers
  • 32.8K subscribers
  • 1.07K Posts
  • 20.5K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • Err(()).unwrap()@lemmy.world
  • UI: unknown version
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org