How to have the results of an `fzf` selection enter my bash history?
5
votes
0
answers
1928
views
FZF is a lovely tool, the main issue I have is that the commands I end up running with it don't end up in my bash history.
Let's say I do this
history | fzf
And I choose a command I ran recently, say echo "hello"
. When I then go through my bash history, my most recently run command isn't echo "hello"
, it's history | fzf
. This means that I have to re-run the entire history | fzf
and find the same echo "hello"
command if I want to run it again.
Is there a way to force my selected command that I got by using fzf
into my bash history?
Asked by John Allard
(1408 rep)
May 19, 2021, 07:37 AM
Last activity: Nov 25, 2023, 09:30 PM
Last activity: Nov 25, 2023, 09:30 PM