git clone https://github.com/Aloxaf/fzf-tab ~/.config/zsh/fzf-tab/ 激活插件,将 fzf-tab 插件附加到 .zshrc 末尾: echo'source ~/.config/zsh/fzf-tab/fzf-tab.plugin.zsh'>> ~/.config/zsh/.zshrc 效果如下: 译注:文中缺少了一个步骤,还需要安装fzf命令, macos 安装:brew install fzf。 译注:...
git clone https://github.com/joshskidmore/zsh-fzf-history-search${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-fzf-history-search Enable it in your.zshrcby adding it to your plugin list: plugins=(… zsh-fzf-history-search) Addjoshskidmore/zsh-fzf-history-searchto your.zshrcfile in the...
export FZF_COMPLETION_OPTS=$FZF_DEFAULT_OPTS 参考:github fzf-history-search 重置zsh source ~/.zshrc 这样,ctrl-r搜索history,或者在输入命令并按ctrl-]时,都将触发fzf搜索。
使用fzf fzf (fuzzy finder)插件可以方便我们查找历史命令,并且大大减少原本ctrl+R的不便利程度。 安装只须在终端输入: sudo aptinstallfzf 并将以下内容添加到~/.zshrc中即可。 source/usr/share/doc/fzf/examples/completion.zshsource/usr/share/doc/fzf/examples/key-bindings.zsh 常用方法为输入指令的某一部分,...
5command-historyzshoptions 假设我不久前做过cd /path/to/foo/bar,然后evince file.pdf。现在,如果我想file.pdf再次打开,我还必须再次执行这两个步骤(使用历史记录)。但是我会一步完成。即我希望notevince file.pdf写入.zsh_historybutevince /path/to/foo/bar/file.pdf。例如,我如何通过修改我的 来实现这一...
在开始 history 命令前,我们先了解下.zshrc 中与 history 相关的一些变量和选项。命令补全 任何命令,如想实现 zsh 自动补全,则必须提供补全规则脚本。zsh 默认的补全规则文件存放在/usr/share/zsh/site-functions/ 下。如某命令无法自动补全,尝试 google 搜索该命令的补全脚本,并将其放在该目录下。...
# stamp shown in the history command output. # You can set one of the optional three formats: # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" # or set a custom format using the strftime function format specifications, # see 'man strftime' for details. ...
shellbashrustzshfishhistory UpdatedApr 9, 2025 Rust warpdotdev/Warp Star23.1k Code Issues Pull requests Discussions Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster. macoslinuxshellbashrustzshterminalwasm ...
fzf.zsh # inits test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" eval "$(starship init zsh)" 任何帮助将不胜感激,如果我提供更多的信息,请告诉我。 zsh oh-my-zsh zshrc macos autocomplete...
unsetopt share_history # zsh的completion插件,case-sensitive completion zinit snippet OMZ::lib/completion.zsh # CASE_SENSITIVE="true"zinit snippet OMZ::lib/git.zsh zinit snippet OMZ::plugins/git/git.plugin.zsh zinit snippet OMZ::lib/clipboard.zsh ...