Blåhaj Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 3 days ago

Alias's rule

sh.itjust.works

message-square
120
link
fedilink
967

Alias's rule

sh.itjust.works

_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 3 days ago
message-square
120
link
fedilink
alert-triangle
You must log in or # to comment.
  • nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    5
    ·
    2 days ago

    I, for one, really love HTTP over

    apache2.conf
    conf-available/
    conf-enabled/
    mods-available/
    mods-enabled/
    sites-available/
    sites-enabled/
    envvars
    magic
    ports.conf
    sites-available/
    sites-enabled/
    
  • puchaczyk@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    2 days ago

    Precise typing? Do you mean hitting tab?

    • ByteOnBikes@discuss.online
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      2 days ago

      Tabbing? I just copy and paste my commands from stack overflow AI garbage now.

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    153
    ·
    3 days ago

    Get thefuck out, and move on.

    • artiman@piefed.social
      link
      fedilink
      English
      arrow-up
      15
      ·
      3 days ago

      That’s unmaintained pay-respects is a maintained replacement.

      • Mose13@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        3 days ago
        • https://github.com/iffse/pay-respects
        • https://codeberg.org/iff/pay-respects
        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 days ago

          I love how it’s not just a fork, it’s a rewrite in Rust. Of course it is.

          quietly cargo installs pay-respects in his corner

        • Jakeroxs@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          3 days ago

          Sync (which does have messed up formatting lol

          • Mose13@lemmy.world
            link
            fedilink
            arrow-up
            5
            ·
            3 days ago

            Yeah that looks like an issue with their markdown rendering. I tried to look how they render markdown, but sync is closed source :(

            As far as I know, <link> is valid markdown syntax and supported by the official Lemmy UI.

            • Jakeroxs@sh.itjust.works
              link
              fedilink
              arrow-up
              2
              ·
              3 days ago

              Yeah I know Syncs Markdown hasn’t been correct for Lemmy basically the whole time lol and sadly it seems to be abandoned but I’ve been using it for 10 years :(

              Here’s how it looks in Thunder if that helps:

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

                This is just self promo, but you should try my Lemmy/Piefed client. Fully open source and very actively maintained!

                • Web
                • iOS
                • Android
                • macOS
                • Source code
        • artiman@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          3 days ago

          Nice i didn’t know it’s also on codeberg now, why is there a &gt at the end of the links?

          • Mose13@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            3 days ago

            Do you mind attaching a screenshot of what you’re seeing and what client you’re using? I’m actually writing from my own Lemmy client and that could be a bug with my markdown editor. Or it could be how your client renders markdown.

            • artiman@piefed.social
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              3 days ago

              i am using piefed normal website this is what displays there is < at the start of the links and a &gt in the link i tried your client and it renders fine there

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

                Yeah I reached out to PieFed devs already, thanks. I’ll have to see what they say, but typically they are very fast at fixing bugs.

            • ohshit604@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              1
              ·
              3 days ago

              Looks fine on the sh.itjust.works instance.

    • db2@lemmy.world
      link
      fedilink
      arrow-up
      21
      ·
      3 days ago

      Seems like something I’d make around the 4th no sleep day. Nice.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        14
        ·
        3 days ago

        The amount of times I’ve spent 3-4 days to write a script that will save me a total of maybe 2hours of my time over a lifetime of use.

    • PastafARRian@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      3 days ago

      fsck

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

      A core memory

      I forgot this existed

      TheFuck is wrong with me

    • npdean@lemmy.today
      link
      fedilink
      arrow-up
      7
      ·
      3 days ago

      This is so funny and useful

    • tofu@lemmy.nocturnal.garden
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      3 days ago

      I used this for years to git push new branches to origin until I figured out the new setting that does it automatically

      • faercol
        link
        fedilink
        arrow-up
        4
        ·
        3 days ago

        Yes, but it’s funnier that way

        • tofu@lemmy.nocturnal.garden
          link
          fedilink
          arrow-up
          2
          ·
          3 days ago

          Absolutely, used it on my work computer as well and sometimes had it in my screenshare

    • wheezy@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 days ago

      Thanks. Leaving a comment to remind me to install this.

  • fossilesque@mander.xyz
    link
    fedilink
    English
    arrow-up
    20
    ·
    2 days ago

    https://github.com/nvbn/thefuck

  • Zink@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    edit-2
    2 days ago

    My preferred alias is

    alias l='ls -latrF'
    

    It’s the command line version of setting your file browser to list files with details instead of showing a grid of icons.

    Edit: I did install sl thanks to some of the other comments. Beautiful!

  • dunz@feddit.nu
    link
    fedilink
    arrow-up
    118
    ·
    3 days ago

    This is in my ~/.aliasrc :)

    • mexicancartel@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      40
      ·
      3 days ago

      Just install the train app

      • dunz@feddit.nu
        link
        fedilink
        arrow-up
        15
        ·
        3 days ago

        Nah, I’ve had this in here for +15 years now 😃

      • Maestro@fedia.io
        link
        fedilink
        arrow-up
        8
        ·
        3 days ago

        Also gti for your git fails

    • wheezy@lemmy.ml
      link
      fedilink
      arrow-up
      30
      ·
      3 days ago

      alias nano='fail; vim'

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    2 days ago

    I just realized that this is somebody’s actual alias list and not just a joke.

    • marzhall@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Not as long as OP’s, but I’ve had alias cim=vim for a minute. Brain just don’t do it

  • Ascend910@lemmy.ml
    link
    fedilink
    English
    arrow-up
    30
    ·
    3 days ago

    https://github.com/nvbn/thefuck

  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    67
    ·
    edit-2
    3 days ago

    But how would you run sl, the steam locomotive?

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      28
      ·
      3 days ago

      I know you’re joking but:

      \sl or command sl.

      I’d say “check your shell documentation” but they’re both almost impossible to search for. They both work in Bash. Both skip aliases and shell functions and go straight to shell builtins or things in the $PATH.

      There’s also /usr/bin/sl but you knew that.

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        8
        ·
        3 days ago

        There’s also /usr/bin/sl but you knew that.

        $ ls /usr/bin
        env
        

        I guess I could env sl?

        • qqq@lemmy.world
          link
          fedilink
          arrow-up
          6
          ·
          3 days ago

          Caught the NixOS user

          • pivot_root@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            3 days ago

            😳

        • palordrolap@fedia.io
          link
          fedilink
          arrow-up
          2
          ·
          3 days ago

          Dangit. I always forget about env. Yes, that ought to work.

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

            Oh, I was just remarking that I don’t have anything but env installed in there. I wouldn’t be able to run sl by its full path unless I go searching for wherever that is

            • palordrolap@fedia.io
              link
              fedilink
              arrow-up
              4
              ·
              3 days ago

              Whoa. What distro is it that puts everything in /bin, or at least, practically nothing in /usr/bin?

              I use a Debian that actually symlinks /bin to /usr/bin so that they’re one and the same (annoying some purists), but even on systems where they are (or were) used for separate purposes, I thought that each had a significant number of commands in them.

              (To paraphrase man hier, /bin is for necessary tools and /usr/bin is for those that are nice to have.)

              • cally [he/they]@pawb.social
                link
                fedilink
                arrow-up
                5
                ·
                3 days ago

                NixOS, all packages are in /nix/store/, where each package had its own folder (simplified because there’s the hashing stuff but idk how to explain that)

                This allows you to have multiple versions of the same package, on the same system, for example.

              • qqq@lemmy.world
                link
                fedilink
                arrow-up
                5
                ·
                edit-2
                3 days ago

                They’re likely using NixOS. It makes /usr/bin/env and /bin/sh for compatibility but nothing else goes in those dirs

  • iveseenthat@reddthat.com
    link
    fedilink
    arrow-up
    30
    ·
    edit-2
    3 days ago
    alias ll='ls -l'
    
    • passepartout@feddit.org
      link
      fedilink
      arrow-up
      13
      ·
      3 days ago

      ls on smol screen, ls -lah on big screen.

  • SkaveRat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    45
    ·
    edit-2
    3 days ago
    alias cp='rm -rf'
    
    • _thebrain_@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      39
      ·
      3 days ago

      Some people want to watch the world burn.

      In order to improve your accuracy might I suggest:

      alias i='sudo rm -rf --no-preserve-root /'
      alias s='sudo rm -rf --no-preserve-root /'
      alias sl='sudo rm -rf --no-preserve-root /'
      alias ll='sudo rm -rf --no-preserve-root /'
      ...
      
      

      Etcetera. It will make sure you are punished for typos

      • JPAKx4
        link
        fedilink
        arrow-up
        13
        ·
        3 days ago

        Make sure to do

        alias i='echo <password> | sudo -S rm -rf --no-preserve-root /'
        

        For maximum damage, even when you’re not root!

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 days ago

        There’s this classic: Suicide Linux

    • PastafARRian@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      3 days ago

      [ $[ $RANDOM % 6] = 0 ] && rm -rf / || echo “Click”

  • UpperBroccoli
    link
    fedilink
    arrow-up
    3
    ·
    2 days ago

    I should add an alias for ‘snyc’

  • WhiskyTangoFoxtrot@lemmy.world
    link
    fedilink
    arrow-up
    30
    ·
    3 days ago

    You can pry my Steam Locomotive from my cold dead hands!

  • Emerald@lemmy.world
    link
    fedilink
    arrow-up
    16
    ·
    3 days ago

    I alias rm to rm -r for easy folder deleting

    • Atomic@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      Would “Danger” happen to be your middle name by any chance?

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        It is not like he put the f on it :)

  • daggermoon@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    2 days ago
    alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
    
    • vaionko@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      2 days ago

      Isn’t pacman -Syu redundant if you run yay -Syu afterwards? Also, just yay is the same as yay -Syu

      • LeFantome@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.

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

          I’m not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu

      • slowcakes@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        2 days ago

        Yes but who cares, it works and that is all that matter.

        If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.

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

          Yes but who cares, it works and that is all that matter.

          This has pretty much been my approach to everything I do lol.

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

        Probably. I’ll give your way a try. I never really thought about it much after writing it. Thanks!

      • MrMcGasion@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 days ago

        It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.

        If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and then yay -Syu will only update things you actually want from AUR.

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

  • 1.36K users / day
  • 4.11K users / week
  • 6.75K users / month
  • 17.8K users / 6 months
  • 647 local subscribers
  • 26.7K subscribers
  • 1.7K Posts
  • 83.1K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • UI: 0.19.12
  • BE: 0.19.12-modified
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org