Skip to content

How to not run the text that i selected from the fzf menu, just copy it to stdout and leave me there? #3724

Closed Answered by junegunn
LinArcX asked this question in Q&A
Discussion options

You must be logged in to vote

Your question is a bit unclear, and I think @LangLangBart tried his best to assist you.

fzf is a filter program. It reads from STDIN and prints the selected entry to STDOUT, just like "grep". So let's replace fzf in your command to grep, and we can see that this really is a shell scripting question, rather than a discussion around the features of fzf.

cat ~/.bash_history | grep foobar

You might want to read https://github.com/junegunn/fzf/blob/master/shell/key-bindings.bash to learn how to do with the output.

If you have more questions about shell scripting, please use a different forum such as https://unix.stackexchange.com/

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@LinArcX
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by LinArcX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants