Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] init.sourcehome: look in ~/.config/zsh for files



On Tue, Jan 2, 2024, at 2:01 AM, Jörg Sommer wrote:
> Would it be an option to initialize ZDOTDIR with ~/.config/zsh, if it
> exists?

This would still make the already-complicated startup process even
more complicated.

> This would not require the setting of ZDOTDIR in /etc, i.e. asking
> the administrator to make the change.

Changing /etc/zshenv is not necessary.  One can easily

    - put all the startup files in $HOME/.config/zsh
    - set ZDOTDIR=$HOME/.config/zsh in $HOME/.config/zsh/.zshenv
    - symlink $HOME/.config/zsh/.zshenv to $HOME/.zshenv

(Or something similar.)

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author