Fzf: How to install key bindings ?

Created on 16 Nov 2018  路  4Comments  路  Source: junegunn/fzf

Title.
If I press Ctrl-R I get the basic reverse search, how do I get the fzf one ?

Most helpful comment

I have this message:
-bash: syntax error near unexpected token `/opt/fzf/install'

This happens if you omit the leading $ symbol from the command. It's easy to mistake that $ for the command prompt, but actually $(brew --prefix) uses shell parameter expansion to take the result of running brew --prefix (which returns the path to the brew directory) and prepend it to the rest of the path.

So, for instance, if your brew directory is /usr/local, running $(brew --prefix)/opt/fzf/install is equivalent to running /usr/local/opt/fzf/install.

All 4 comments

$(brew --prefix)/opt/fzf/install

I have this message:
-bash: syntax error near unexpected token `/opt/fzf/install'

I have this message:
-bash: syntax error near unexpected token `/opt/fzf/install'

This happens if you omit the leading $ symbol from the command. It's easy to mistake that $ for the command prompt, but actually $(brew --prefix) uses shell parameter expansion to take the result of running brew --prefix (which returns the path to the brew directory) and prepend it to the rest of the path.

So, for instance, if your brew directory is /usr/local, running $(brew --prefix)/opt/fzf/install is equivalent to running /usr/local/opt/fzf/install.

oh, thanks for aswering. Is solved!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbeier picture lbeier  路  3Comments

fenuks picture fenuks  路  3Comments

ahmedelgabri picture ahmedelgabri  路  3Comments

erusev picture erusev  路  3Comments

ghost picture ghost  路  3Comments