this post was submitted on 17 Oct 2023
1098 points (98.8% liked)

linuxmemes

20771 readers
1591 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 11 months ago (4 children)

id type out more ~/.bash_history | grep ls and copy, paste before id type out ls tbh

[–] [email protected] 7 points 11 months ago* (last edited 11 months ago) (1 children)

Why do all that typing? Hit ctrl-r first then type ls. Bonus points if you hook fzf into it.

fzf hooked into ctrl-r, a bash history of about 100k and HISTCONTROL=ignoreboth is magic.

Note: backup your history file periodically, system crashes at the wrong time can zero it leaving you incompetent until it's restored.

[–] [email protected] 1 points 11 months ago (2 children)

Pretty sure you just got wooshed...

[–] [email protected] 4 points 11 months ago (1 children)

This whole post is ridiculous, idk if its possible to get whooshed in here.

[–] [email protected] 1 points 11 months ago

Yeah it's ridiculous. That's the woosh. The statement was "I'd type more blah piped to ls then copy and paste before typing ls"

It's absurd. It's obviously absurd. If you didn't pick up on that, you got wooshed

[–] [email protected] 1 points 11 months ago

Probably, but I'll spread the good word anyway.

[–] [email protected] 1 points 11 months ago

at least you avoided a "useless cat" by using "more" instead. Respect Bro!

[–] [email protected] 1 points 11 months ago

Useless use of more

[–] [email protected] 1 points 11 months ago* (last edited 11 months ago)

You can pipe it to wl-copy, and then when you need it all you need to type is wl-paste