UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
生産性・共同作業 · SKILL.md

profile-optimizer

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

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: profile-optimizer description: | 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

Profile Optimizer v1.5.0

Speed up your shell with intelligent profile optimization.

Features

  • Lazy loading for heavy tools
  • Parallel initialization
  • Deferred completion loading
  • nvm/rbenv/pyenv optimization
  • Startup time benchmarking
  • Automatic cleanup of unused entries

Architecture

profile-optimizer/
├── SKILL.md
└── scripts/
    └── profile_optimizer.sh   # Core optimizer implementation

Installation

Run the optimizer to analyze and enhance your shell profile.

Configuration

# 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

Usage

# 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

Quick Start

To optimize your profile, simply run:

./scripts/profile_optimizer.sh analyze

That's it! The script analyzes and optimizes your shell profile.

Optimization Example

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

保存したスキル