计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
profile-optimizer【效率与协作】Optimize your shell profile for faster startup and better performance. Reduce shell initialization time by up to 80%. Use when: slow terminal, shell startup, profile optimize, bash slow
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: profile-optimizer description: | Optimize your shell profile for faster startup and better performance. Reduce shell initialization time by up to 80%.
Speed up your shell with intelligent profile optimization.
profile-optimizer/
├── SKILL.md
└── scripts/
└── profile_optimizer.sh # Core optimizer implementation
Run the optimizer to analyze and enhance your shell profile.
# config.yaml
target_files:
- ~/.profile
- ~/.bash_profile
- ~/.bashrc
- ~/.zshrc
optimizations:
lazy_load:
- nvm
- rbenv
- pyenv
- conda
defer_completions: true
parallel_init: true
telemetry:
enabled: true
anonymous: true
# Analyze current profile
bash scripts/profile_optimizer.sh analyze
# Optimize profile
bash scripts/profile_optimizer.sh optimize
# Benchmark startup time
bash scripts/profile_optimizer.sh benchmark
To optimize your profile, simply run:
./scripts/profile_optimizer.sh analyze
That's it! The script analyzes and optimizes your shell profile.
Before optimization in ~/.profile:
# Slow initialization
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
After optimization:
# Fast lazy-loaded initialization
nvm() {
unset -f nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm "$@"
}
Faster shell, happier developer