Add dcli to base module and make sync manual
This commit is contained in:
@@ -9,9 +9,15 @@
|
|||||||
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git
|
git clone git@git-ssh.furtherverse.com:imbytecat/archlinux-wsl-init.git
|
||||||
cd archlinux-wsl-init
|
cd archlinux-wsl-init
|
||||||
|
|
||||||
# 2. 运行 bootstrap(仅首次)
|
# 2. 运行 bootstrap(安装 yay 和 dcli)
|
||||||
chmod +x bootstrap.sh
|
chmod +x bootstrap.sh
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
|
|
||||||
|
# 3. 检查配置(可选)
|
||||||
|
cat ~/.config/arch-config/hosts/wsl.yaml
|
||||||
|
|
||||||
|
# 4. 应用配置
|
||||||
|
dcli sync
|
||||||
```
|
```
|
||||||
|
|
||||||
## 配置说明
|
## 配置说明
|
||||||
|
|||||||
@@ -5,3 +5,9 @@ packages:
|
|||||||
- wget
|
- wget
|
||||||
- vim
|
- vim
|
||||||
- neovim
|
- neovim
|
||||||
|
|
||||||
|
aur_packages:
|
||||||
|
- dcli-arch-git
|
||||||
|
|
||||||
|
aur_packages:
|
||||||
|
- dcli-arch-git
|
||||||
|
|||||||
+8
-6
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "==> 安装 yay (唯一手动步骤)..."
|
echo "==> 安装 yay..."
|
||||||
if ! command -v yay &> /dev/null; then
|
if ! command -v yay &> /dev/null; then
|
||||||
sudo pacman -S --needed --noconfirm base-devel git
|
sudo pacman -S --needed --noconfirm base-devel git
|
||||||
cd /tmp
|
cd /tmp
|
||||||
@@ -14,11 +14,13 @@ fi
|
|||||||
echo "==> 安装 dcli..."
|
echo "==> 安装 dcli..."
|
||||||
yay -S --needed --noconfirm dcli-arch-git
|
yay -S --needed --noconfirm dcli-arch-git
|
||||||
|
|
||||||
echo "==> 初始化 dcli 配置..."
|
echo "==> 复制配置..."
|
||||||
mkdir -p ~/.config/arch-config
|
mkdir -p ~/.config/arch-config
|
||||||
cp -r ./arch-config/* ~/.config/arch-config/
|
cp -r ./arch-config/* ~/.config/arch-config/
|
||||||
|
|
||||||
echo "==> 运行 dcli sync..."
|
echo ""
|
||||||
dcli sync
|
echo "✓ Bootstrap 完成!"
|
||||||
|
echo ""
|
||||||
echo "✓ 完成!所有配置已应用"
|
echo "下一步:"
|
||||||
|
echo " 1. 检查配置: ~/.config/arch-config/"
|
||||||
|
echo " 2. 应用配置: dcli sync"
|
||||||
|
|||||||
Reference in New Issue
Block a user