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

Alias's rule

sh.itjust.works

message-square
33
link
fedilink
19

Alias's rule

sh.itjust.works

_thebrain_@sh.itjust.works to linuxmemes@lemmy.world · 16 days ago
message-square
33
link
fedilink
alert-triangle
You must log in or # to comment.
  • digger@lemmy.ca
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    16 days ago

    But how would you run sl, the steam locomotive?

    • palordrolap@fedia.io
      link
      fedilink
      arrow-up
      1
      ·
      16 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
        0
        ·
        16 days ago

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

        $ ls /usr/bin
        env
        

        I guess I could env sl?

        • palordrolap@fedia.io
          link
          fedilink
          arrow-up
          1
          ·
          16 days ago

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

        • qqq@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          16 days ago

          Caught the NixOS user

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    2
    ·
    16 days ago

    Get thefuck out, and move on.

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

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

      • moseschrute@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        16 days ago
        • https://github.com/iffse/pay-respects
        • https://codeberg.org/iff/pay-respects
        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          14 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
          0
          ·
          edit-2
          16 days ago

          Sync (which does have messed up formatting lol

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

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

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

  • Flax@feddit.uk
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 days ago
    sudo apt install sl
    

    Thank me later

    • _stranger_@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      16 days ago

      I remember people groaning in the CS lab in college when they realized they hadn’t locked their machine before walking away for just long enough to let someone install sl.

      • Flax@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        16 days ago

        I am a menace around unlocked computers. Was at a job and found a colleague who left his computer unlocked and had customer information open in a co working space on his screen. Set his computer language to hebrew before locking it.

        Another time in college I found an unlocked computer in a library. Set their profile picture to Chris Chan with an overlay image saying “#ThisIsMyAuthenticSelf #Unafraid”. On this system, the user was not likely to see their own picture, but other people they contact will.

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          2
          ·
          14 days ago

          Couple of jobs back, the custom was to either set the background image to something disgusting and borderline NSFW, or go on the equivalent of Slack that we used and announce “I’m getting everyone pizza tomorrow” for them. The latter was considered just punishment for a security violation.

        • _stranger_@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          16 days ago

          You used to be able to set a web site as a background on windows XP.

          I used that to terrible effect

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

            I used to set default webpages on display models in stores to direct competitors sites.

      • Nailbar@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        15 days ago

        They left a root session open? Then they really deserved it.

        Oh, maybe it was just the sl binary downloaded somewhere.

  • dunz@feddit.nu
    link
    fedilink
    arrow-up
    1
    ·
    16 days ago

    This is in my ~/.aliasrc :)

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

      alias nano='fail; vim'

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        edit-2
        15 days ago

        alias emacs='fail; vim'

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

    alias apt=‘reboot’

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

  • nickwitha_k (he/him)@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    15 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/
    
  • fossilesque@mander.xyz
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 days ago

    https://github.com/nvbn/thefuck

  • puchaczyk@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    15 days ago

    Precise typing? Do you mean hitting tab?

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

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

  • SkaveRat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    16 days ago
    alias cp='rm -rf'
    
    • _thebrain_@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      1
      ·
      16 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

  • LeFantome@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    15 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
      ·
      15 days ago

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

  • otacon239@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    16 days ago

    Should have left ‘sl’ for the train!

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.

  • 764 users / day
  • 3.71K users / week
  • 5.5K users / month
  • 5.53K users / 6 months
  • 1 local subscriber
  • 26.9K subscribers
  • 169 Posts
  • 2.22K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org