• ip 💥 uhhhggghhh
  • awk 💥 uhhhggghhh
  • sed 💥 uhhhggghhh
  • grep 💥 uhhhggghhh
  • journalctl 💥 uhhhggghhh
  • brew install docker? Nope! 💥 uhhhggghhh

Having to maintain TWO build chains (when the product only actually runs on Linux) and deal with all the extra tooling and complexity 💥💥💥💥💥💥 uhhhggghhh

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      Eh. Windows has its share of annoyances, but once I have set it up to my liking my desktop workflow is very similar to my KDE setup, and WSL + Windows Terminal gives me a functional Linux shell environment.

      And at least on Windows I don’t have to deal with cmd/control/alt switcharoo messing up my muscle memory.

  • catlover@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    2 days ago

    how do you guys manage to cope with the keyboard layout? the ctrl-super-alt is completely different, even if i just remap them, there will be cases they just dont work like on linux (kitty ctrl-keys, firefox ctrl-tab, etc…) even worse that i use hungarian keylayout and now i use 2 different programs (karabiner, ukulele) to have somewhat similar keys like on linux, but still not perfect …

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      the ctrl-super-alt is completely different

      It’s not “completely different” … and that’s the problem. Completely different I can handle. I can manage knowing vim keybindings, readline keybindings and standard windows keybindings at the same time. What I can’t handle is: having to use command + C on one Mac and control + C on Windows to copy, but then in some cases you do use “control” on both OS-es, and sometimes control and alt are switched … It’s because they are similar but different that it’s such a mess trying to get proficient in both at the same time.

  • waldfee@feddit.org
    link
    fedilink
    arrow-up
    14
    ·
    3 days ago

    my workaround for awk, sed, and grep has been to create symlinks in my $Path that point to gawk, gsed, and ggrep, which you can install through brew. Nix has also been useful to keep my sanity intact, tho it’s a learning curve too, and when Macos updates happen you will need to fix/reinstall it. Can I ask what terminal you are using?

    • paequ2@lemmy.todayOP
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      3 days ago

      create symlinks in my $Path that point to gawk, gsed, and ggrep

      The problem with this is that scripts assume the BSD versions of those tools. The scripts break if I do that. (I tried doing that.) 😢

      The parts of the code base that can be built on both platforms is littered with:

      if os == linux
        awk <something>
      else if os == mac
        awk <something else>
      
      • Creat@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        3 days ago

        Why not set an $awk var once for the right platform and then use that instead of if-on-every-call? This seems incredibly error prone and verbose for no reason…

        Edit: To be clear I’m aware that it isn’t about the binary, but surely most of the calls have some baseline commonality that could be abstracted? Or: Can the Linux awk be built on bsd or vice versa? Ok fine, if it was the simple, it would’ve probably been the solution…

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    3 days ago

    I used to run linux in a vm on the work mac, which was fine. Then they managed to block it too. I tried a gentoo prefix, but did not work well enough to be usable on arm. It sucks.

    • paequ2@lemmy.todayOP
      link
      fedilink
      arrow-up
      9
      ·
      edit-2
      3 days ago

      The funny thing is that my manager just told me one of the development workflows is:

      • create a Linux VPS on cloud
      • they have tooling so that local code gets synced to remote Linux
      • SSH into remote Linux
      • code, dev, test, etc

      😐 … 🫲 … 🫱 … 🙌

  • haych@feddit.uk
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    3 days ago

    I just started a new job that’s MacOS instead of Windows. I couldn’t be happier.

  • sepi@piefed.social
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    3 days ago

    brew install iproute2mac

    Also docker is not on homebrew, but there is an installer for it (or you can use Orbstack, which also provides docker). Not everything is on brew, some things may have separate installers, but a very quick google search will help you find all of these.

    However, journalctl might be not as helpful on mac - you can install it via brew, but it’s not really mac-native.

    As an OG bearded UNIX person, my advice is to learn the platform and stop fighting it - do things on the platform with the native tooling where possible as possible. From the text of your post, it seems to me that you just want to use Linux. I understand how you feel, yet this feeling is signal but not data.

    Good luck and safe travels, friend.

    • Pup Biru@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      Also docker is not on homebrew

      Except that it is

      https://formulae.brew.sh/formula/docker

      Casks and formulas handle basically anything: non-redistributable binaries, installers, etc

      my advice is to learn the platform and stop fighting it

      Absolutely it… there’s a load of Mac utilities and norms I miss when I use Linux, and visa versa: it’s just different platforms… neither is better; they’re just different

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    3 days ago

    i love how much it’s changed in just ten years because i remember in the 2010s and late 2000s, every company would make me use windows despite loving the dev environment of mac (especially snow leopard).

    now it’s almost the opposite with wsl and all

    (pls don’t come at me - i actually use linux on both my laptop and desktop now i’m just saying anecdotally)

    • Drew@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      huh, I use fish but also use awk, sed, grep. What should I use with fish? The string commands?

      • UnfortunateShort@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 days ago

        Yeah, I do everything with string at this point, because it can do pretty much anything I usually need and has a quite uniform syntax, along with good regex support (and dialect imo)