fzf reports ‘parse error near `done’

less than 1 minute read

This is a long last issue that happens every time I open a new tab or open iTerm, I thought it was a issue of fzf, and it is not, actually, because reinstall fzf does not fix this issue.

Thi is the error message:

Last login: Sat Mar 12 19:02:27 on ttys011
/Users/fdbai/.fzf/shell/key-bindings.zsh:31: parse error near `done'

This moring I fixed this problem by accident, I logged into my ubuntu (with zsh and ohmyzsh installed), I find there is no aliases that I used before, so I copied .oh-my-zsh/custom/aliases.zsh to it, then the magic happens, same problem as my macOS, after inspecting my aliases I find out that I have below alias:

alias do='ssh root@165.232.69.236'

I should never do that.