22.9 配置 Shell
Zsh
安装 Zsh
# pkg install zsh zsh-completions zsh-autosuggestions zsh-syntax-highlighting程序
说明
# cd /usr/ports/shells/zsh/ && make install clean
# cd /usr/ports/shells/zsh-completions && make install clean
# cd /usr/ports/shells/zsh-autosuggestions/ && make install clean
# cd /usr/ports/shells/zsh-syntax-highlighting/ && make install clean查看安装后说明
# pkg info -D zsh
zsh-5.9_5:
On install:
==========================================================
By default, zsh looks for system-wide defaults in
/usr/local/etc.
If you previously set up /etc/zprofile, /etc/zshenv, etc.,
either move them to /usr/local/etc or rebuild zsh with the
ETCDIR option enabled.
==========================================================
默认情况下,zsh 会在 /usr/local/etc 中查找系统范围的默认设置。
如果你之前设置了 /etc/zprofile、/etc/zshenv 等,
要么将它们移到 /usr/local/etc,要么在启用 ETCDIR 选项的情况下重新构建 zsh。
==========================================================配置 Zsh
使用主题美化
Bash
安装 Bash
程序
说明
查看安装后配置
配置 Bash
配置 csh/tcsh
最后更新于