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

Related issues

olethanh picture olethanh  路  3Comments

sassanh picture sassanh  路  3Comments

asilvadesigns picture asilvadesigns  路  3Comments

erusev picture erusev  路  3Comments

ghost picture ghost  路  3Comments