Skip to content

Restructure shell config into shared.sh - #15

Open
akan72 wants to merge 2 commits into
akan72/zshrc-cleanupfrom
akan72/shell-restructuring
Open

Restructure shell config into shared.sh#15
akan72 wants to merge 2 commits into
akan72/zshrc-cleanupfrom
akan72/shell-restructuring

Conversation

@akan72

@akan72 akan72 commented May 29, 2026

Copy link
Copy Markdown
Owner

Summary

Test Plan

  • Ran the complete installer in a fresh synthetic home on the Mac mini.
  • Sourced shared.sh twice and confirmed $HOME/.local/bin appeared exactly once in PATH.
  • Ran bash -n shared.sh bashrc bash_profile, zsh -n zshrc, and git diff --check.
  • Screenshots: not applicable; validation was CLI-based.

@akan72
akan72 force-pushed the akan72/shell-restructuring branch from 1b0e17b to 8a81d79 Compare August 22, 2026 19:29
@akan72
akan72 force-pushed the akan72/shell-restructuring branch from 8a81d79 to 8653720 Compare August 22, 2026 19:36
@akan72
akan72 force-pushed the akan72/shell-restructuring branch from 8653720 to e0e1dcc Compare August 22, 2026 19:42
akan72 added 2 commits August 22, 2026 15:46
- Extract shared aliases, exports, and PATH into shared.sh (single source of truth)
- Source shared.sh (~/.shared.sh) from both bashrc and zshrc instead of
  sourcing bashrc from zshrc
- Consolidate all static PATH entries (Homebrew, Postgres, yarn, bun, ~/.local/bin)
  into one block in shared.sh with a _prepend_path dedup helper, preventing
  PATH from ballooning in nested shells (e.g. tmux)
- Symlink shared.sh -> ~/.shared.sh in assimilate.sh
@akan72
akan72 force-pushed the akan72/shell-restructuring branch from e0e1dcc to a62efdc Compare August 22, 2026 19:46
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.

1 participant