refactor: 从 dcli 迁移到 decman 声明式配置管理
- 新增 source.py 统一声明包、系统文件和 dotfiles - 简化 install.sh,由 decman 接管系统文件和 locale 配置 - 移除 dcli 配置(config.yaml、hosts/、modules/、state/) - 添加 pyproject.toml 和 uv.lock 用于开发环境类型提示 - 更新 README.md 和 AGENTS.md 适配 decman 工作流
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
---
|
||||
description: 基础工具
|
||||
packages:
|
||||
- base-devel
|
||||
- bat
|
||||
- curl
|
||||
- dcli-arch-git
|
||||
- fd
|
||||
- fzf
|
||||
- git
|
||||
- neovim
|
||||
- ripgrep
|
||||
- sudo
|
||||
- trash-cli
|
||||
- vim
|
||||
- wget
|
||||
- yay
|
||||
- zoxide
|
||||
@@ -1,6 +0,0 @@
|
||||
---
|
||||
description: 开发工具
|
||||
packages:
|
||||
- bun
|
||||
- mise
|
||||
- nodejs
|
||||
@@ -1,30 +0,0 @@
|
||||
# Oh My Zsh
|
||||
ZSH=/usr/share/oh-my-zsh/
|
||||
ZSH_THEME="ys"
|
||||
plugins=(git)
|
||||
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
|
||||
if [[ ! -d $ZSH_CACHE_DIR ]]; then
|
||||
mkdir $ZSH_CACHE_DIR
|
||||
fi
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
source /usr/share/zsh/plugins/fzf-tab-git/fzf-tab.plugin.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# bun
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
|
||||
# mise
|
||||
if command -v mise &> /dev/null; then
|
||||
eval "$(mise activate zsh)"
|
||||
fi
|
||||
|
||||
# zoxide
|
||||
if command -v zoxide &> /dev/null; then
|
||||
eval "$(zoxide init zsh)"
|
||||
fi
|
||||
|
||||
# Aliases
|
||||
alias cd="z"
|
||||
alias cdi="zi"
|
||||
alias rm="trash-put"
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
description: Zsh 及插件
|
||||
dotfiles:
|
||||
- source: dotfiles/.zshrc
|
||||
target: ~/.zshrc
|
||||
post_install_hook: set-default-shell.sh
|
||||
hook_behavior: once
|
||||
@@ -1,8 +0,0 @@
|
||||
---
|
||||
packages:
|
||||
- fzf-tab-git
|
||||
- oh-my-zsh-git
|
||||
- zsh
|
||||
- zsh-autosuggestions
|
||||
- zsh-completions
|
||||
- zsh-syntax-highlighting
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
if [ "$SHELL" != "$(which zsh)" ]; then
|
||||
echo "==> 设置默认 shell 为 zsh..."
|
||||
sudo chsh -s "$(which zsh)" "$USER"
|
||||
echo "✓ 默认 shell 已设置为 zsh(重新登录后生效)"
|
||||
else
|
||||
echo "默认 shell 已经是 zsh"
|
||||
fi
|
||||
Reference in New Issue
Block a user