Linux 系统配置记录
系统配置
1. Zsh 安装与配置
安装 Zsh
# 安装 Zsh
sudo apt update
sudo apt install zsh
# 查看 Zsh 的版本
zsh --version
# 设置 Zsh 为默认 shell
chsh -s $(which zsh)
安装 Zimfw
2025.02.16:使用 Zimfw 代替 Oh My Zsh,集成度和效率更高
# 查看当前使用的 shell
echo $SHELL
# 通过 curl 安装 Zimfw
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
echo $ZSH
# 备份 .zshrc 配置文件
cp ~/.zshrc ~/.zshrc.bak
# 移除 Oh My Zsh 配置
rm -rf ~/.oh-my-zsh
# 编辑 zsh 配置文件
nano ~/.zshrc
# 编辑 zim 配置文件
nano ~/.zimrc
# 通过 source 重新加载配置
source ~/.zshrc
Zsh 插件与主题配置
# 添加 powerlevel10k 模块
zmodule romkatv/powerlevel10k
zimfw install
zimfw update
zimfw upgrade
# 安装 Zoxide(非 Zimfw 安装)
curl -sSfL https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | sh
大部分 Oh My Zsh 需要手动配置的插件(如 compinit、SHARE_HISTORY、CORRECT 等)在 Zim 中已经默认启用,只需要手动添加需要的模块和主题,使用
zimfw install
即可自动安装。
开发配置
暂无开发环境配置
Enjoy Reading This Article?
Here are some more articles you might like to read next: