-
zsh-autosuggestions(搭配 Oh My Zsh)- 功能:基于输入历史实时提示完整命令,按
→键补全。 - 安装:
# 先安装 Oh My Zsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # 启用插件 git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - 配置:在
~/.zshrc中添加plugins=(... zsh-autosuggestions)。
- 功能:基于输入历史实时提示完整命令,按
-
fish-shell- 功能:内置自动补全引擎,无需配置即可智能提示命令、参数和路径。
- 安装:
# Debian/Ubuntu sudo apt install fish # 设为默认 Shell chsh -s $(which fish)