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

Re: Observe what profiles are loaded?



On Fri, Sep 6, 2019 at 11:45 AM Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
>
> I don't follow the documentation of `-o`. Could you please explain
> what it means?

If you read "man zshoptions" you'll see that every option has a long
name (e.g., AUTO_CD or SOURCE_TRACE or XTRACE etc.), and a subset of
options also have a "single letter option" (prefixed by a hyphen).
The long name is for use with "setopt" and the single letter is for
use either with the builtin "set" command or as startup options to the
"zsh" invocation itself.  In the event that you want to pass to "zsh"
an option that does not have a "single letter" variation, you can use
"zsh -o name" where "name" is the long name of the option; in the
current example: "zsh -o SOURCE_TRACE".



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