Skip to content

fix shell, vim, and git startup compatibility#9

Merged
aguil merged 5 commits into
masterfrom
fix-shell-git-startup-compat
Mar 5, 2026
Merged

fix shell, vim, and git startup compatibility#9
aguil merged 5 commits into
masterfrom
fix-shell-git-startup-compat

Conversation

@aguil

@aguil aguil commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • make Git p4merge/kdiff3 commands robust on macOS by resolving app-bundle binaries and using gitconfig-safe shell expressions
  • remove an invalid Vim option (set surround) that caused startup error E518 when loading ~/.vimrc
  • remove legacy nvm bootstrap from Bash profile now that Node/npm are managed through asdf, preventing startup prefix conflicts

Test plan

  • run git mergetool and confirm p4merge launches successfully
  • launch Vim with managed config and confirm no E518 startup error
  • start a clean Bash login shell and confirm Node/npm resolve via asdf with no nvm prefix warning

Made with Cursor

aguil added 5 commits March 4, 2026 17:08
Prefer app-bundle executable paths for p4merge and kdiff3 on macOS while keeping command-name fallbacks so merge and diff tools resolve reliably across environments.
Keep command output and prompt glyph on separate lines by adding LP_PS1_PREFIX and LP_MARK_PREFIX for a cleaner terminal prompt flow.
Replace semicolon-based if/then snippets with semicolon-free shell expressions so gitconfig preserves full p4merge and kdiff3 commands instead of truncating at the first semicolon.
Drop the unsupported `set surround` line so Vim starts cleanly without E518 when loading ~/.vimrc.
Drop nvm startup wiring from the bash profile now that node and npm are managed via asdf, avoiding startup-time prefix conflicts.
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