Skip to content

Modularize .zshrc into separate component files - #340

Merged
unitz007 merged 1 commit into
mainfrom
modularize-zshrc
Aug 4, 2026
Merged

Modularize .zshrc into separate component files#340
unitz007 merged 1 commit into
mainfrom
modularize-zshrc

Conversation

@kael-dev-bot

@kael-dev-bot kael-dev-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

This PR modularizes the .zshrc configuration into separate component files for better organization and maintainability.

Changes made:

  1. Split the monolithic .zshrc into modular files:

    • aliases.zsh - all alias definitions
    • functions.zsh - all custom functions (including fixed rmDir)
    • exports.zsh - environment variable exports
    • plugins.zsh - plugin initialization
    • options.zsh - shell options
    • path.zsh - PATH configuration
    • keybindings.zsh - key bindings
  2. Fixed the rmDir alias issue by converting it to a proper function since aliases don't support positional parameters

  3. Created a new main .zshrc that sources all modular files in the correct order

  4. Preserved all existing functionality while improving code organization

This modular approach makes it easier to manage and update individual components of the shell configuration.

- Split monolithic .zshrc into modular files:
  - aliases.zsh: all alias definitions
  - functions.zsh: all custom functions (including fixed rmDir)
  - exports.zsh: environment variable exports
  - plugins.zsh: plugin initialization
  - options.zsh: shell options (currently empty)
  - path.zsh: PATH configuration (currently empty)
  - keybindings.zsh: key bindings (currently empty)
- Fixed rmDir alias issue by converting it to a proper function
- Updated main .zshrc to source all modular files in correct order
@unitz007
unitz007 merged commit 4d20fd0 into main Aug 4, 2026
4 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.

1 participant