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

Re: ZDOTDIR



>>>>> "Shao" == Shao Zhang <shao@xxxxxxxxxxxxx> writes:

    Shao> Hi, According to the man pages, ZDOTDIR is the directory
    Shao> used by zsh to search for shell startup files(.zshrc etc).

    Shao> 	But, what is the ideal place to define this variable??
    Shao> I would really like to do it in .zshrc, but I cannot since
    Shao> zsh uses it to find where .zshrc is.

    Shao> 	Thanks for any help.

    Shao> Shao.
Put it in $HOME/.zshenv
Heres mine as an example

#!/bin/zsh
ZDOTDIR=~/.zshell
export X11HOME=/usr/X11
export TEXHOME=/usr/share/texmf

path=(~/bin .)
path=($path /bin /usr/bin)
path=($path $X11HOME/bin /usr/local/bin)
path=($path $TEXHOME/bin)

Vance



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