Fzf: alias vf="vim $(fzf)" can't work!

Created on 12 Feb 2019  路  2Comments  路  Source: junegunn/fzf

If I write alias vf="vim $(fzf)" into my zshrc, the command vim $(fzf) will run automatically whenever I open a new terminal.
What should I do?

question

Most helpful comment

Use single quotes to avoid immediate evaluation: alias vf='vim $(fzf)'

All 2 comments

Use single quotes to avoid immediate evaluation: alias vf='vim $(fzf)'

Thanks for your good answer! @junegunn

Was this page helpful?
0 / 5 - 0 ratings