Skip to content

Clean up zshrc: drop bashrc source, OMZ git plugin, conflicts#14

Open
akan72 wants to merge 1 commit into
akan72/bashrc-cleanupfrom
akan72/zshrc-cleanup
Open

Clean up zshrc: drop bashrc source, OMZ git plugin, conflicts#14
akan72 wants to merge 1 commit into
akan72/bashrc-cleanupfrom
akan72/zshrc-cleanup

Conversation

@akan72
Copy link
Copy Markdown
Owner

@akan72 akan72 commented May 29, 2026

Summary

Branch 2 of the dotfiles cleanup (stacked on akan72/bashrc-cleanup). Untangles the bash/zsh relationship and removes dead OMZ weight.

  • Stop sourcing ~/.bashrc from zshrc; inline the shared aliases/exports directly (Branch 3 extracts them to shared.sh)
  • Remove the oh-my-zsh git plugin (custom git aliases shadow every alias it provides)
  • Resolve set -o vi vs bindkey -e: drop set -o vi from bashrc so zsh uses emacs line editing consistently
  • Resolve brew node vs nvm: remove brew "node" from the Brewfile so nvm manages Node versions

Why & alternatives (from explanations.txt — Branch 2)

Change Why Alternatives
Remove source ~/.bashrc from zshrc Bash-specific syntax can break under zsh; mixes two shells' configs confusingly. Use shared.sh (Branch 3).
Resolve set -o vi vs bindkey -e bashrc set vi mode, zshrc set emacs mode. Since bashrc was sourced first, vi was immediately overridden — silent footgun. Pick one explicitly. Emacs chosen (common even when using vim as editor).
Remove OMZ git plugin Custom git aliases (g, gs, ga, …) shadow every OMZ alias — the plugin does nothing. Drop custom aliases and use OMZ's instead (breaks muscle memory).
Resolve brew "node" vs nvm Both installed → which node wins depends on PATH order. Two version managers fighting. Picked nvm (per-project .nvmrc); brew node is simpler if version switching isn't needed.

Decision recorded: keep nvm, remove brew "node".


Base: akan72/bashrc-cleanup. Merge order: Branch 1 → Branch 2 → Branch 3.

…conflicts

- Stop sourcing ~/.bashrc from zshrc (bash-specific syntax can break under zsh);
  inline the shared aliases/exports directly (extracted to shared.sh in follow-up)
- Remove the oh-my-zsh git plugin (custom git aliases shadow every alias it provides)
- Resolve set -o vi vs bindkey -e: drop 'set -o vi' from bashrc so zsh uses emacs
  line editing consistently (was silently overridden anyway)
- Resolve brew node vs nvm: remove brew "node" from Brewfile so nvm manages
  Node versions (per-project .nvmrc), matching the active setup
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