Aliff's Lemmy Server
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Alejandro Mendoza to linuxmemes@lemmy.world • 8 days ago

siempre lo hago

eviltoast.org

message-square
209
fedilink
1.56K

siempre lo hago

eviltoast.org

Alejandro Mendoza to linuxmemes@lemmy.world • 8 days ago
message-square
209
fedilink
  • acargitz
    link
    fedilink
    13•8 days ago

    history | grep [the thing]

    • @bdonvr@thelemmy.club
      link
      fedilink
      21•8 days ago

      CTRL+R [the thing]

      please i beg you

      • acargitz
        link
        fedilink
        5•8 days ago

        with grep I see all the alternatives, Ctl+R just shows me one

        • @disobey2623@lemmy.dbzer0.com
          link
          fedilink
          6•8 days ago

          Combine ctrl+R with fzf and get the best of both worlds

        • @oddlyqueer@lemmy.ml
          link
          fedilink
          English
          6•8 days ago

          For me ctrl-r is faster most of the time, history | grep [command] is better if I can’t easily pattern match (don’t remember it exactly, using several flag variations, etc.). they’re both good tools.

        • @Evotech@lemmy.world
          link
          fedilink
          1•8 days ago

          You can press up

          • Avicenna
            link
            fedilink
            2•8 days ago

            seeing multiple at the same time is more helpful though

    • @lepinkainen@lemmy.world
      link
      fedilink
      6•8 days ago

      https://atuin.sh/

    • @surewhynotlem@lemmy.world
      link
      fedilink
      6•8 days ago

      Ppsshh. Not lazy enough. Create that in a script and call it “hgrep” and drop it into path.

      • acargitz
        link
        fedilink
        2•8 days ago

        Brilliant

      • @JoeyJoeJoeJr@lemmy.ml
        link
        fedilink
        2•8 days ago

        Why not just use an alias?

        • @surewhynotlem@lemmy.world
          link
          fedilink
          1•7 days ago

          That’s the right way, yes.

    • @Emerald@lemmy.world
      link
      fedilink
      5•
      edit-2
      8 days ago

      i was doing cat ~/.bash_history | grep thing which is stupid so i started doing grep "thing" ~/.bash_history

      now you’re telling me i should do history | grep thing

      i can’t win

      • @qjkxbmwvz@startrek.website
        link
        fedilink
        7•8 days ago

        Some would call the former command cat abuse.

        In short, unless you want the contents of a file printed to stdout (or multiple files concatenated), the command can probably be written without cat, instead using the filename as an argument (grep pattern file) or IO redirection (cmd < file).

        Stylistics and readability are another thing though.

        • @Emerald@lemmy.world
          link
          fedilink
          2•7 days ago

          Some would call the former command cat abuse.

          it 100% is, its just a bad habit of mine

    • @altphoto@lemmy.today
      link
      fedilink
      1•8 days ago

      Exactly! Now copy paste it into Joplin where you’ll never see it ever again.

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.

  • 1.53K users / day
  • 3.68K users / week
  • 8.15K users / month
  • 8.24K users / 6 months
  • 27.1K subscribers
  • 327 Posts
  • 4.56K Comments
  • Modlog
  • mods:
  • @zephyr@lemmy.world
  • @rtxn@lemmy.world
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org