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

Re: Observe what profiles are loaded?



I don't follow the documentation of `-o`. Could you please explain
what it means?

       Options may be specified by name using the -o option.  -o acts  like  a
       single-letter  option, but takes a following string as the option name.

On 9/6/19, Andreas Kusalananda Kähäri <andreas.kahari@xxxxxx> wrote:
> On Fri, Sep 06, 2019 at 10:49:23AM -0700, Bart Schaefer wrote:
>> On Fri, Sep 6, 2019 at 8:47 AM Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
>> >
>> > It describes what files are loaded by zsh. But I like to monitor the
>> > progress in action. Is there a way to print the file whenever a file
>> > is loaded? Thanks.
>>
>> In ~/.zshenv, add
>>
>> setopt SOURCE_TRACE
>>
>> This will miss /etc/zshenv but report everything else.  This is a
>> fairly recent option, older versions do not have it.
>
> Starting the shell with
>
>     zsh -o SOURCE_TRACE
>
> should cover /etc/zshenv
>


-- 
Regards,
Peng



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