Skip to content

feat: add support for ~/.zshrc.local for user customizations#20

Open
leofelipet wants to merge 1 commit into
promovaweb:mainfrom
leofelipet:feat/zshrc-local-custom-config
Open

feat: add support for ~/.zshrc.local for user customizations#20
leofelipet wants to merge 1 commit into
promovaweb:mainfrom
leofelipet:feat/zshrc-local-custom-config

Conversation

@leofelipet

Copy link
Copy Markdown

This PR adds support for user customizations via a separate "~/.zshrc.local" file that is never overwritten by SetupVibe updates.

Changes

  • ZSH configs: Added 'source ~/.zshrc.local' at the end of all three zshrc files (macOS, Linux, server)
  • Install scripts: Create ~/.zshrc.local on first install if it doesn't exist (desktop.sh, server.sh)
  • Aliases:
    • 'reload' now sources both ~/.zshrc and ~/.zshrc.local
    • 'zlocal' opens ~/.zshrc.local for editing
  • Documentation: Updated READMEs and ALIAS.md across all languages (en, pt-br, es, fr)

Motivation

Currently, when users run SetupVibe updates, their personal aliases and customizations in ~/.zshrc are overwritten because the entire file is replaced. This change allows users to add personal aliases, functions, and variables in ~/.zshrc.local, which will persist across updates.

The ~/.zshrc.local file is only created during the first installation if it doesn't already exist, ensuring existing user customizations are never touched.

- Add 'source ~/.zshrc.local' at the end of all zshrc configs (macOS, Linux, server)
- Create ~/.zshrc.local on first install if it doesn't exist (desktop.sh, server.sh)
- Add 'zlocal' alias to edit the custom config file
- Update 'reload' alias to source both ~/.zshrc and ~/.zshrc.local
- Update documentation across all languages (en, pt-br, es, fr)

This allows users to add personal aliases, functions, and variables
in a separate file that is never overwritten by SetupVibe updates.
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