You're viewing a single thread.
All Comments
86 comments
m15otw @feddit.uk 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)
50 0 Replyp0q @sh.itjust.works Use fzf for a more visual search.
12 0 ReplyLeanFemurs @lemmy.world
This is the way.
5 0 Reply
brakenium @lemm.ee I've been using this for a long time, never knew I could press Ctrl + R again. Thanks!
8 0 Replywandering_nomad @lemmy.world Ctrl + S to go the other way if you overshoot!
8 0 Reply
spoopyking @lemmy.fmhy.ml Or
history | grep 'command'
6 0 Replym15otw @feddit.uk Can't just hit enter to run the one you want then, though.
3 0 Replyrufus @lemmy.world Type: !1234 ... to run whatever history number of the command.
7 0 Reply
Sorse @discuss.tchncs.de
Also works in fish
1 0 ReplyLucidDaemon @lemmy.world Wish I knew this sooner.
1 0 ReplySidewayspeach @feddit.nl But how to go backwards and forwards through the results? I just cycle through again!!
1 0 Replym15otw @feddit.uk As @wandering_nomad@lemmy.world said above, Ctrl+S
1 0 Reply
86 comments
Scroll to top