Skip to content

Clean up legacy setup scripts and simplify shell functions#9

Merged
goude merged 1 commit intomainfrom
claude/cleanup-old-scripts-qMLXA
Mar 31, 2026
Merged

Clean up legacy setup scripts and simplify shell functions#9
goude merged 1 commit intomainfrom
claude/cleanup-old-scripts-qMLXA

Conversation

@goude
Copy link
Copy Markdown
Owner

@goude goude commented Mar 31, 2026

Summary

This PR removes obsolete setup scripts and installation utilities, while simplifying the shell functions library by removing unused or overly complex helper functions.

Key Changes

Removed Files:

  • docs/build_cool_retro_term_mac_homebrew_2025.sh - macOS-specific build script for Cool Retro Term (no longer maintained)
  • setup/base.yml - Ansible playbook for base package installation (superseded by newer approach)
  • setup/install/ directory - Legacy installation scripts for:
    • homeshick dotfile manager
    • Neovim
    • Binary tools (starship, shfmt, rust-analyzer)
    • NVM (Node Version Manager)
    • Node package updates

Simplified Functions (functions file):

  • Removed get_var(), set_var(), and dedup_pathvar() - unused path deduplication utilities with known issues
  • Simplified git_user_name_prompt_mkii() - removed redundant conditional logic, now directly returns formatted email
  • Simplified save() - removed commented-out debug code
  • Simplified center-text() - removed function keyword (shell-agnostic), removed commented-out code
  • Removed nerdfont_icon_search() - unused nerd font search utility
  • Removed emoji_search() - unused emoji search utility

Updated Build Configuration:

  • Updated justfile fmt and lint targets to only process setup/*.sh (removed references to deleted setup/install/*.sh)
  • Updated setup/NOTES.md to remove reference to legacy install/ subdirectory

Rationale

These changes clean up the repository by removing deprecated, unmaintained, or superseded setup approaches. The legacy installation scripts have been replaced with more modern tooling and approaches. The simplified shell functions remove dead code and improve maintainability.

https://claude.ai/code/session_014GE7w3BJQ25yV9nb7rN7jk

- Delete setup/install/ (superseded by setup/*.sh)
- Delete setup/install-linux.sh and setup/base.yml (old Ansible approach)
- Delete root NOTES.md (personal scratchpad) and docs/build_cool_retro_term (unrelated one-off)
- Remove Legacy section from setup/NOTES.md
- Fix justfile fmt/lint recipes to not reference removed setup/install/
- Clean up functions: remove dead nerdfont_icon_search (broken RUNCOM2_PATH ref),
  emoji_search (emojify not installed), dedup_pathvar/get_var/set_var (TODO/untested);
  simplify git_user_name_prompt_mkii; drop dead comments

https://claude.ai/code/session_014GE7w3BJQ25yV9nb7rN7jk
@goude goude merged commit 64a4b1b into main Mar 31, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants