programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Carly™@lemmy.world to linuxmemes@lemmy.worldEnglish · 2 年前

Look, I'm lazy, okay?

lemmy.world

message-square
86
link
fedilink
1.21K

Look, I'm lazy, okay?

lemmy.world

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

    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 年前

      Use fzf for a more visual search.

      • LeanFemurs@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 年前

        This is the way.

    • brakenium@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 年前

      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 年前

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

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

      Or history | grep 'command'

      • m15otw@feddit.uk
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 年前

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

        • rufus@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          2 年前

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

    • Sorse@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      3 个月前

      Also works in fish

    • LucidDaemon@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      Wish I knew this sooner.

    • Sidewayspeach@feddit.nl
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 年前

      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 年前

        As @[email protected] 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: [email protected]

Hint: :q!


Sister communities:
  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

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.

  • 293 users / day
  • 3.62K users / week
  • 9.71K users / month
  • 18.8K users / 6 months
  • 509 local subscribers
  • 25K subscribers
  • 1.64K Posts
  • 85.4K Comments
  • Modlog
  • mods:
  • Kevin@lemmy.world
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org