Feature: bootstrap modular system, modules, tests, and configs - #15
Merged
Merged
Conversation
## New: bootstrap.sh (modular installer) - Interactive feature selection menu (Core/Shell/Dev/Node/Docker) - --all, --module, --non-interactive, --list flags - Calls install_<module>() functions from modules/*.sh - Appends .zshrc.d sourcing block to ~/.zshrc (idempotent) ## New: uninstall.sh - Removes deployed ~/.zshrc.d/ files - Restores .zshrc/.tmux.conf/.emacs.el backups - Removes ~/.config/starship.toml and atuin/config.toml - Removes git commit.template setting ## New: modules/ - lib.sh — shared helpers: colors, OS detect, pkg_install, backup_file, deploy_config - core.sh — zsh/tmux/lsd/emacs/htop/neofetch/yazi install + deploy - shell.sh — starship, fzf, zoxide, atuin - dev.sh — gh, ripgrep, direnv, bat, delta, fd, jq, lazygit + git config - node.sh — fnm + Node LTS + commitizen - docker.sh — Docker CE + docker compose ## New: dotfiles/.zshrc.d/ - starship.zsh, fzf.zsh, zoxide.zsh, atuin.zsh — Shell block - direnv.zsh, node.zsh, docker.zsh, commit.zsh — Dev/Node/Docker blocks - Each file guards eval with command -v <tool> ## New: config/ - starship.toml — two-line prompt with git/node/python info - atuin/config.toml — fuzzy search, emacs keybindings, no auto-sync ## New: templates/ - node/package.json, node/.gitignore - python/pyproject.toml, python/.gitignore ## New: tests/ - run_tests.sh, test_bootstrap.sh, test_lib.sh - test_configs.sh, test_zshrc_d.sh ## Updated: dotfiles/.zshrc - Append modular sourcing block (# === dotfiles modular config ===) - Sources ~/.zshrc.d/*.zsh and ~/.zshrc.local ## Updated: .gitignore - Add: .zshrc.local, *.local, .env, .envrc, __pycache__/, node_modules/ ## Updated: .github/workflows/shellcheck.yml - Cleanup comments, checkout@v3 → @v4, fix job name casing ## New: dotfiles/.gitmessage - Conventional commit template Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
command -vガード)New Files
bootstrap.sh
インタラクティブメニューで Core/Shell/Dev/Node/Docker を ON/OFF して実行。
--all,--module <name>,--non-interactive,--listフラグ対応。uninstall.sh
~/.zshrc.d/のファイル削除、バックアップ復元、starship/atuin config 削除、git commit.template 削除。modules/
lib.shcore.shshell.shdev.shnode.shdocker.shdotfiles/.zshrc.d/
starship.zsh,fzf.zsh,zoxide.zsh,atuin.zsh,direnv.zsh,node.zsh,docker.zsh,commit.zsh各ファイルは
command -v <tool>ガードで、ツール未インストールでも安全にスキップ。config/
starship.toml— 2行プロンプト(git/node/python 情報表示)atuin/config.toml— fuzzy 検索、emacs キーバインド、auto-sync 無効templates/
node/— package.json, .gitignore スタブpython/— pyproject.toml, .gitignore スタブtests/
run_tests.sh+test_bootstrap.sh,test_lib.sh,test_configs.sh,test_zshrc_d.shUpdated Files
dotfiles/.zshrc# === dotfiles modular config ===).gitignore.zshrc.local,*.local,.env,.envrc,__pycache__/,node_modules/追加.github/workflows/shellcheck.ymlcheckout@v3→@v4、ジョブ名修正dotfiles/.gitmessageTest plan
bash bootstrap.sh --non-interactiveが Linux/macOS で正常実行されること(CI で確認)bash tests/run_tests.shが全テスト green であることshellcheck bootstrap.sh uninstall.sh modules/*.shが pass することbash uninstall.shでクリーンにアンインストールできること🤖 Generated with Claude Code