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?
Use single quotes to avoid immediate evaluation: alias vf='vim $(fzf)'
Thanks for your good answer! @junegunn
Most helpful comment
Use single quotes to avoid immediate evaluation:
alias vf='vim $(fzf)'