feat: Complete project reorganization
- Reorganize core-theory into 6 thematic subdirectories (01-06) - Clean up root directory, move files to appropriate locations - Create comprehensive README files for navigation - Add new academic papers and research content - Implement English naming convention for better indexing - Total: 42 core theory files organized, 7 READMEs created Key improvements: - Clear hierarchical structure (foundational → matrix → analysis → empires) - Better discoverability with detailed navigation guides - Scalable framework for future content expansion - AI-friendly organization for indexing and processing
This commit is contained in:
45
scripts/apply_simplified_config.sh
Normal file
45
scripts/apply_simplified_config.sh
Normal file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "=== 应用简化 ZSH 配置 ==="
|
||||
echo ""
|
||||
|
||||
# 备份当前配置
|
||||
echo "1. 备份当前 .zshrc..."
|
||||
cp ~/.zshrc ~/.zshrc.backup.$(date +%Y%m%d_%H%M%S)
|
||||
echo "✓ 已备份到 ~/.zshrc.backup.$(date +%Y%m%d_%H%M%S)"
|
||||
|
||||
# 应用简化配置
|
||||
echo ""
|
||||
echo "2. 应用简化配置..."
|
||||
cp /home/ben/code/huhan3000/simplified_zshrc ~/.zshrc
|
||||
echo "✓ 简化配置已应用"
|
||||
|
||||
echo ""
|
||||
echo "3. 清理缓存..."
|
||||
rm -rf ~/.oh-my-zsh/cache/*
|
||||
echo "✓ 缓存已清理"
|
||||
|
||||
echo ""
|
||||
echo "4. 测试新配置..."
|
||||
if zsh -c "source ~/.zshrc; echo '配置加载成功'" 2>/dev/null; then
|
||||
echo "✓ 新配置测试通过"
|
||||
else
|
||||
echo "✗ 新配置测试失败,恢复备份..."
|
||||
cp ~/.zshrc.backup.$(date +%Y%m%d_%H%M%S) ~/.zshrc
|
||||
echo "✓ 已恢复原配置"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== 简化完成 ==="
|
||||
echo "新配置包含的插件:"
|
||||
echo " - git (必需)"
|
||||
echo " - docker (必需)"
|
||||
echo " - docker-compose (Docker 相关)"
|
||||
echo " - colored-man-pages (彩色手册页)"
|
||||
echo " - extract (解压文件)"
|
||||
echo " - zsh-autosuggestions (自动建议)"
|
||||
echo " - zsh-syntax-highlighting (语法高亮)"
|
||||
echo ""
|
||||
echo "移除了 16 个不必要的插件,应该能解决你的问题!"
|
||||
echo "请重新启动终端或运行: source ~/.zshrc"
|
||||
Reference in New Issue
Block a user