bash 推荐
之前使用的 Fig【已经不在维护,需要升级成Amazon Q】
Amazon Q
安装教程
$ brew install amazon-q
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Downloading https://desktop-release.q.us-east-1.amazonaws.com/1.7.0/Amazon%20Q.dmg
####################################################################################################################################################### 100.0%
==> Installing Cask amazon-q
==> Moving App 'Amazon Q.app' to '/Applications/Amazon Q.app'
🍺 amazon-q was successfully installed!
注意:如果安装之后无法使用,大概率因为没有进行账号登录,在terminal里输入q
调起Amazon Q后进行注册登录即可。
zsh 推荐
Oh My Zsh (Zsh 插件)
如果你使用 Zsh,可以结合 Oh My Zsh 和一些插件(如 zsh-autosuggestions
)实现实时推荐。
特点:
- 实时显示历史命令和补全建议。
- 支持多种插件扩展。
安装方法:
- 安装 Oh My Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 安装
zsh-autosuggestions
插件:git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 在
~/.zshrc
中启用插件:plugins=(zsh-autosuggestions)
- 重新加载配置:
source ~/.zshrc
使用体验:
- 输入命令时,Zsh 会实时显示历史命令和补全建议。
- 适合 Zsh 用户。