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

Re: using variables from .zshenv in shell scripts



On Dec 17, 11:16am, TJ Luoma wrote:
}
} I have some variables set in ~/.zshenv which I want to use in shell
} scripts
}
} However, those variables do not seem to be defined when the shell
} script runs.

Is there possibly a value for ZDOTDIR already in your environment when
the script runs?

It's also possible that /etc/zshenv is doing something that causes your
$HOME/.zshenv to be skipped.

Try using

     #!/bin/zsh -x

in the script to see what's actually executing.



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