Skip to content

How to use fzf remotely through SSH, within command substitution? #3072

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

You must be logged in to vote

Do you have to run fzf remotely? If that is not the case, a simple workaround would be to run it locally.

selected_value=$(ssh example.com "echo -e 'a\nb'" | fzf)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@FranklinYu
Comment options

@junegunn
Comment options

@FranklinYu
Comment options

@junegunn
Comment options

Answer selected by FranklinYu
Comment options

You must be logged in to vote
0 replies
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