ubuntu18:依赖git
bash
# ubuntu18
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# 一路Y就可以了
ubuntu20:使用apt
bash
sudo apt-get install fzf
# 在.bashrc中追加下面两行
source /usr/share/doc/fzf/examples/key-bindings.bash
source /usr/share/doc/fzf/examples/completion.bash