tta.wtf
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 2 days ago

Alias's rule

sh.itjust.works

message-square
148
link
fedilink
934

Alias's rule

sh.itjust.works

_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 2 days ago
message-square
148
link
fedilink
alert-triangle
You must log in or register to comment.
  • nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    1 hour 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/
    
  • UpperBroccoli@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    6 hours ago

    I should add an alias for ‘snyc’

  • puchaczyk@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    13 hours ago

    Precise typing? Do you mean hitting tab?

    • ByteOnBikes@discuss.online
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      12 hours ago

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

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    13 hours 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
      ·
      12 hours ago

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

  • Zink@programming.dev
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    13 hours 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!

  • fossilesque@mander.xyz
    link
    fedilink
    English
    arrow-up
    19
    ·
    19 hours ago

    https://github.com/nvbn/thefuck

    • MTK@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      18 hours ago

      That’s really good! 🤣

  • irelephant [he/him]@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    2
    ·
    13 hours ago

    alias pqsl='psql'

  • daggermoon@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    18 hours ago
    alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
    
    • vaionko@sopuli.xyz
      link
      fedilink
      arrow-up
      7
      ·
      18 hours 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
        ·
        13 hours 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
          ·
          9 hours 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
        ·
        17 hours 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
          ·
          17 hours 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
        ·
        17 hours 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
        ·
        17 hours 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.

  • moopet@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 hours ago

    alias gti=git

    • jim3692@discuss.online
      link
      fedilink
      arrow-up
      1
      ·
      17 hours ago

      https://r-wos.org/hacks/gti

  • oplkill@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    21 hours ago

    alias cd… “cd …”

    • Valmond@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      18 hours ago

      Windows programmer detected!

      (I was guilty of this so much)

  • Ascend910@lemmy.ml
    link
    fedilink
    English
    arrow-up
    31
    ·
    1 day ago

    https://github.com/nvbn/thefuck

  • iveseenthat@reddthat.com
    link
    fedilink
    arrow-up
    32
    ·
    edit-2
    1 day ago
    alias ll='ls -l'
    
    • passepartout@feddit.org
      link
      fedilink
      arrow-up
      14
      ·
      1 day ago

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

  • Atomic@sh.itjust.works
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    19 hours ago

    The most useful for me is probably “ln = ls -n”

    It’s supposed to be “lsn = ls -n”.

    • d_k_bo@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      18 hours ago

      I originally had

      alias ll="ls -la"
      

      Now it is

      alias ll="eza --all --long --header --group --time-style=long-iso --git --icons --group-directories-first"
      
      • jim3692@discuss.online
        link
        fedilink
        arrow-up
        2
        ·
        17 hours ago

    • Opisek@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      19 hours ago

      What if you need to create a link?

      • Atomic@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        19 hours ago

        I mistyped. I have it set as lsn.

    • Magnum, P.I.@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      2
      ·
      19 hours ago

      Ehm … https://linux.die.net/man/1/ln

      • Atomic@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        19 hours ago

        In true accordance to the post. I mistyped. I have it set as lsn.

        • Magnum, P.I.@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          13 hours ago

          Hello, do you want to play a game?

          • Atomic@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            13 hours ago

            No thanks. I choose life. Though it reminds me of this little gem

            https://www.youtube.com/watch?v=qzZLvw2AdvM

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    154
    arrow-down
    1
    ·
    2 days ago

    Get thefuck out, and move on.

    • PastafARRian@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      fsck

    • artiman@piefed.social
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 day ago

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

      • moseschrute@lemmy.world
        link
        fedilink
        arrow-up
        12
        ·
        1 day ago
        • https://github.com/iffse/pay-respects
        • https://codeberg.org/iff/pay-respects
        • Jakeroxs@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          edit-2
          1 day ago

          Sync (which does have messed up formatting lol

          • moseschrute@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            1 day 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
              ·
              1 day 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:

              • moseschrute@lemmy.world
                link
                fedilink
                arrow-up
                4
                ·
                1 day 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
                • kungen@feddit.nu
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  1 day ago

                  Looks really nice! But do you have any debug for logging in? I’m 100% certain that I’m logging in correctly, but it says invalid login every time.

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

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

          • moseschrute@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day 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
              1 day 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

              • moseschrute@lemmy.world
                link
                fedilink
                arrow-up
                3
                ·
                1 day 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
              ·
              1 day ago

              Looks fine on the sh.itjust.works instance.

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

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

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        15
        ·
        1 day 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.

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

      A core memory

      I forgot this existed

      TheFuck is wrong with me

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

      This is so funny and useful

    • tofu@lemmy.nocturnal.garden
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      24 hours 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@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        Yes, but it’s funnier that way

        • tofu@lemmy.nocturnal.garden
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

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

      • M137@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        “the this”

        • tofu@lemmy.nocturnal.garden
          link
          fedilink
          arrow-up
          1
          ·
          24 hours ago

          Fixed

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

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

      • FauxLiving@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 day ago

        Same. This is both useful and hilarious.

        tldr is another good tool if you’re just learning cli tools.

        • A Wild Mimic appears!@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          thanks for the suggestion - i like that man pages are thorough, but the probability that i need some option that 0,5% of users need is pretty low for now

          • FauxLiving@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            Exactly.

            Man pages are not bad, but often it helps to have a few examples of how people use the tool.

  • alt_xa_23@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    1 day ago

    I recently switched to a mechanical keyboard (with linear switches), and it took me a while to stop mistyping every command

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.31K users / day
  • 4.18K users / week
  • 6.08K users / month
  • 6.14K users / 6 months
  • 2 local subscribers
  • 26.7K subscribers
  • 934 Posts
  • 23.3K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • UI: unknown version
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org