Skip to content

Break up ZSH config files #10

Open
@dysfungi

Description

@dysfungi

Requirements

Dependencies

Pull Requests

Benefits

  • Inclusion of zprofile/zlogin and zlogout allow for specific files to be sourced when shell is a login shell. Useful for printing todo files, fortune, or cowsay files and scripts.
  • Inclusion of zshenv allows for non-interactive shells to still have the proper environment setup. That especially matters for any scripts that use #!/bin/zsh and are run as cronjobs.
  • zshrc is still the primary file with exception of environment variables moving to zshenv.

Research

Specs

Utilize:

  • zshenv
    1. **/*path.zsh (except **/*fpath.zsh)
    2. **/*env.zsh
  • zprofile
    1. **/*profile.zsh
  • zshrc
    1. **/*fpath.zsh
    2. **/*.zsh (except **/*completion.zsh, **/*path.zsh, **/*env.zsh, **/*profile.zsh, **/*login.zsh, **/*logout.zsh)
    3. **/*completion.zsh
  • zlogin
    1. **/*login.zsh
  • zlogout
    1. **/*logout.zsh

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions