在zsh中可以自动触发fzf历史搜索吗?
在这个视频中,用户单击"Ctrl+r“开始历史搜索,然后开始键入。当我开始键入任何内容时,是否可以自动启动历史搜索?或者,是否可以配置zsh,使新的提示符始终以"Ctrl+r“模式启动?
发布于 2019-10-16 20:00:05
这在最初的GitHub存储库中有描述。如果您正在使用homebrew
,您只需键入$(brew --prefix)/opt/fzf/install
并按您喜欢的方式配置它。脚本将创建两个文件,并要求您更新shell配置文件。用于所有其他安装过程(git克隆、linux brew、.)看看https://github.com/junegunn/fzf
$(brew --prefix)/opt/fzf/install ─╯
Downloading bin/fzf ...
- Already exists
- Checking fzf executable ... 0.18.0
Do you want to enable fuzzy auto-completion? ([y]/n) y
Do you want to enable key bindings? ([y]/n) y
Generate /Users/hans/.fzf.bash ... OK
Generate /Users/hans/.fzf.zsh ... OK
Do you want to update your shell configuration files? ([y]/n) y
Update /Users/hans/.bashrc:
- [ -f ~/.fzf.bash ] && source ~/.fzf.bash
+ Added
Update /Users/hans/.zshrc:
- [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
+ Added
Finished. Restart your shell or reload config file.
source ~/.bashrc # bash
source ~/.zshrc # zsh
Use uninstall script to remove fzf.
https://unix.stackexchange.com/questions/534942
复制相似问题