* Should I add .zcompcache to '.gitignore'?
@ 2020-07-10 13:52 TJ Luoma
2020-07-11 5:21 ` dana
0 siblings, 1 reply; 3+ messages in thread
From: TJ Luoma @ 2020-07-10 13:52 UTC (permalink / raw)
To: Zsh MailingList
My "$ZDOTDIR" is a private git repo so I can have it on all my Macs.
Today the file `.zcompcache` appeared in it. Reading up on it, it
seems like a file that I would not want to save in my repo. Is that
correct?
Thanks!
Tj
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should I add .zcompcache to '.gitignore'?
2020-07-10 13:52 Should I add .zcompcache to '.gitignore'? TJ Luoma
@ 2020-07-11 5:21 ` dana
2020-07-11 11:45 ` Perry Smith
0 siblings, 1 reply; 3+ messages in thread
From: dana @ 2020-07-11 5:21 UTC (permalink / raw)
To: TJ Luoma; +Cc: Zsh MailingList
On 10 Jul 2020, at 08:52, TJ Luoma <luomat@gmail.com> wrote:
> Today the file `.zcompcache` appeared in it. Reading up on it, it
> seems like a file that I would not want to save in my repo. Is that
> correct?
I can't think of any reason you would want to keep it in your repo. I have it
ignored in mine
dana
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Should I add .zcompcache to '.gitignore'?
2020-07-11 5:21 ` dana
@ 2020-07-11 11:45 ` Perry Smith
0 siblings, 0 replies; 3+ messages in thread
From: Perry Smith @ 2020-07-11 11:45 UTC (permalink / raw)
To: Zsh MailingList
[-- Attachment #1: Type: text/plain, Size: 1763 bytes --]
> On Jul 11, 2020, at 12:21 AM, dana <dana@dana.is> wrote:
>
> On 10 Jul 2020, at 08:52, TJ Luoma <luomat@gmail.com> wrote:
>> Today the file `.zcompcache` appeared in it. Reading up on it, it
>> seems like a file that I would not want to save in my repo. Is that
>> correct?
>
> I can't think of any reason you would want to keep it in your repo. I have it
> ignored in mine
When I first got started with zsh, I also started with a newer version
of emacs which uses the new “XDG” base directory spec[1]
I don’t claim to have understood it but I tried.
Part of the spec is XDG_CACHE_HOME: $XDG_CACHE_HOME defines the base
directory relative to which user specific non-essential data files
should be stored. If $XDG_CACHE_HOME is either not set or empty, a
default equal to $HOME/.cache should be used.
In /etc/zshenv I have:
if [[ -z "$XDG_CONFIG_HOME" ]]
then
export XDG_CONFIG_HOME="$HOME/.config"
fi
if [[ -z "$XDG_CACHE_HOME" ]]
then
export XDG_CACHE_HOME="$HOME/.cache"
fi
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
then
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
fi
Then in various ~/.config/zsh/ files I have:
ZCACHEDIR="$XDG_CACHE_HOME/zsh”
HISTFILE="$XDG_CACHE_HOME/zsh/history"
ZCOMPDUMP="${ZCACHEDIR}/zcompdump-${ZSH_VERSION}”
zstyle ':completion::complete:*' cache-path "${ZCACHEDIR}/zcompcache"
The objectivie (which I may not have 100% succeeded at) is to keep all
of the temp / cache type files over in ~/.cache rather than ~/.config
[1] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html <https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-07-11 11:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 13:52 Should I add .zcompcache to '.gitignore'? TJ Luoma
2020-07-11 5:21 ` dana
2020-07-11 11:45 ` Perry Smith
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).