Lemmy Today
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Carly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 2 years ago

Look, I'm lazy, okay?

lemmy.world

message-square
85
link
fedilink
1.24K

Look, I'm lazy, okay?

lemmy.world

Carly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 2 years ago
message-square
85
link
fedilink
  • m15otw@feddit.uk
    link
    fedilink
    English
    arrow-up
    50
    ·
    2 years ago

    Ctrl+R

    Then type any part of the command (filename, search string, etc)

    Ctrl+R again to cycle through the matches.

    (Best feature in bash)

    • p0q@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      12
      ·
      2 years ago

      Use fzf for a more visual search.

      • LeanFemurs@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        This is the way.

    • brakenium@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      I’ve been using this for a long time, never knew I could press Ctrl + R again. Thanks!

      • wandering_nomad@lemmy.world
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 years ago

        Ctrl + S to go the other way if you overshoot!

    • spoopyking@lemmy.fmhy.ml
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 years ago

      Or history | grep 'command'

      • m15otw@feddit.uk
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Can’t just hit enter to run the one you want then, though.

        • rufus@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 years ago

          Type: !1234 … to run whatever history number of the command.

    • Sorse@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Also works in fish

    • LucidDaemon@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Wish I knew this sooner.

    • Sidewayspeach@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      But how to go backwards and forwards through the results? I just cycle through again!!

      • m15otw@feddit.uk
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        As @wandering_nomad@lemmy.world said above, Ctrl+S

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.

  • 481 users / day
  • 4.88K users / week
  • 9.58K users / month
  • 19.1K users / 6 months
  • 145 local subscribers
  • 24.8K subscribers
  • 1.62K Posts
  • 93.5K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org