Install fzf(模糊文件查找)
文章目录 shell下的fzf 安装ccat 安装fzf 配置zshrc neovim下的fzf 安装fzf.vim 配置fzf ranger下的fzf 修改ranger的commands.py 配置你的rc.conf shell下的fzf 安装ccat ccat和cat的功能一样,但是ccat能够高亮显示,但是cat不能,ccat安装方法如下: wget https://github.com/jingweno/ccat/releases/download/v1.1.0/linux-amd64-1.1.0.tar.gz tar -xvf linux-amd64-1.1.0.tar.gz sudo cp ./linux-amd64-1.1.0/ccat /usr/bin/ 安装fzf git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf ~/.fzf/install 当然你需要确保你安装了git 配置zshrc 在你的zshrc中写入: export FZF_DEFAULT_OPTS='--bind ctrl-j:down,ctrl-k:up --preview "[[ $(file --mime {}) =~ binary ]] && echo {} is a binary file || (ccat -