Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Trying to learn ... RCS and GLOBAL_RCS
- X-seq: zsh-users 27618
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Trying to learn ... RCS and GLOBAL_RCS
- Date: Sat, 26 Mar 2022 08:53:19 -0500
- Arc-authentication-results: i=1; rspamd-cf7f5c5bf-vwslb; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@xxxxxxxxxxxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1648302800; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=da+mkKL/llmYUu4qQCm1Ug8g7JOTwH6S67TqLwdHT5c=; b=I12Z3bFwSyJiOwgO0AO5bMmXf+7d1vKdmQ1KEc3rHe/2wMZn6nHPb7twIYeEqc/6iO8t1c 6m5qt1v7RQC1RkLcGfKLHsNFSSVDHZKhftFocuGjG+XCsEogaoB4KoPQK3QxAdRCSzDRTA V1sqvV1UgX0HQvxeuI7APPQF6t0bV0loLrJDmbyfUJCHKciF6IQESkWKlZ3OntdLm61LBj 4+qXmlGxfIc6q3jqvuWz8cw/79ZHSX81BH6h6kr5cj2ALNduppHj9oxNbEIqHAeE5axs2R g1KdcyppZEg/fhIL7j9Xnwxk5hsgdy+8m0SgFSftJltXFbnt5CoNHXSt99bE6Q==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1648302800; a=rsa-sha256; cv=none; b=FByuCPhpPaFZ6OazJA14zZucByxnCNZU0F55GnHBNeGjui2V1Ohx+gs9krxteRU6tgrep2 zCClzhDEvLORBKUyz83ohXrkAt81Syh7P3I1KYTogokbcLGp3+l8Nt3zd4S9o6GWkYA+iD G+XhcVRogCJ9a15pM8TC7FRS/216j6Ra1EDNzP6uQxpJ0hFi5gqdJqixwoJapGXk+cPOgT 8ucpqZ+E/C4AKUHkm2jWcfyTvbB3QXX7yyughgAHsBQ7VhrSVTHa1tqSJ2vQigV32ecu89 PYTc+ixyw1y4UX0PFaIouVmhYu31iICw+H4BYunRVtgU/QrUcrWe7qJlL6qBUg==
- Archived-at: <https://zsh.org/users/27618>
- List-id: <zsh-users.zsh.org>
I won’t paste the whole text here but I’m looking at the STARTUP/SHUTDOWN FILES section in zsh(1) / zshall(1) and the documentation isn’t matching what I’m seeing. Do I need more coffee???
The man page says:
> "Both RCS and GLOBAL_RCS are set by default.”.
Yet when I do “unsetopt” at the very top of my /etc/zshenv file, it says:
> noglobalrcs
> norcs
But I know all of my RC files and global RC files are being read — via a “trace” function I cobbled together.
I started using ZSH when Apple switched to it and I tried to read and study and learn. This past week, I was trying to use a BSD system and my history wasn’t being saved. Turns out Apple hid setting of the various history zsh variables that in their /etc/zshrc and /etc/zshrc_Apple_Terminal so I never added it to my start up files. That caused me to start digging more to fully understand things and that’s when I came up with these questions.
It is the same with logout. On Apple (and I assume on BSD once I get the other options and variables set properly), history is being saved yet the man page says:
> "Note also that the RCS option affects the saving of history files, i.e. if RCS is unset when the shell exits, no history file will be saved.”
These are the 5.8 and 5.8.1 man pages.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author