修复文件同步:系统文件由 install.sh 管理,zshrc 用 dcli dotfiles 同步
- zsh 模块改为目录模块,支持 dotfiles 同步 .zshrc - install.sh 添加 mirrorlist 和 sudoers 复制 - 移除空的 files/home 目录
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
description: Zsh 及插件
|
||||||
|
|
||||||
|
dotfiles_sync: true
|
||||||
|
dotfiles:
|
||||||
|
- source: .zshrc
|
||||||
|
target: ~/.zshrc
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
description: Zsh 及插件
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- zsh
|
- zsh
|
||||||
- zsh-completions
|
- zsh-completions
|
||||||
@@ -31,6 +31,11 @@ else
|
|||||||
git clone "$REPO_URL" "$CONFIG_DIR"
|
git clone "$REPO_URL" "$CONFIG_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "==> 配置系统文件..."
|
||||||
|
sudo cp "$CONFIG_DIR/files/etc/pacman.d/mirrorlist" /etc/pacman.d/mirrorlist
|
||||||
|
sudo cp "$CONFIG_DIR/files/etc/sudoers.d/10-wheel" /etc/sudoers.d/10-wheel
|
||||||
|
sudo chmod 440 /etc/sudoers.d/10-wheel
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ 安装完成!"
|
echo "✓ 安装完成!"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user