-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zsh: add completion.path
#1456
zsh: add completion.path
#1456
Conversation
Allow for overriding the zcompdump file location to somewhere outside of zdotdir.
I'm not sure how rycee handles renamed options, but I know Nix has On another note, do you happen to know how |
@berbiche thanks for the reply
I also use this setting. No idea if it does much but it's one of those I've picked up when looking for speed improvements.
That's the whole thing apparently. my
So it's pretty different 😅 Edit: That "zsh: 20 Completion System" page also mentions # ${config.xdg.cacheHome} being home-manager
ZSH_CACHE="${config.xdg.cacheHome}/zsh"
mkdir -p "$ZSH_CACHE"
zstyle ':completion:*' accept-exact '*(N)'
zstyle ':completion:*' use-cache on
COMP_CACHE_FILE="$ZSH_CACHE/zcompcache"
zstyle ':completion:*' cache-path $COMP_CACHE_FILE |
Ehh I never bothered to check if the zcompdump was written in the right place. As it turns out the file was being created in my $ZDOTDIR all along. |
sadly zsh doesn't follow xdg standard, would setting ZDOTDIR be enough for your usecase @06kellyjac ? |
I'm not sure I understand why that means I shouldn't change
Sadly not. Setting This changing https://wiki.archlinux.org/index.php/XDG_Base_Directory The zsh entry in "hardcoded" goes over what you can change to make zsh a bit more respectful of xdg |
you could try the mkRenamedOptionModule indeed. I think this could even be enabled by default. |
|
Thank you for your contribution! I marked this pull request as stale due to inactivity. If this remains inactive for another 7 days, I will close this PR. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the issue
|
I'll try and fix this up now the other PR is merged |
Thank you for your contribution! I marked this pull request as stale due to inactivity. If this remains inactive for another 7 days, I will close this PR. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the issue
|
Description
Let users set a different location to dump the zcompdump file.
Having
.zcompdump
in my zsh config dir was getting annoying.TODO:
enableCompletion
?enableCompletion
to the newcompletion.enable
?mkdir -p ...
&-d ${cfg.completion.path}
?optionalString
s but it didn't look too good.Checklist
Change is backwards compatible.
Code formatted with
./format
.zsh.nix
isn't included but I tried to keep it formatted similar to the rest of the file.Code tested through
nix-shell --pure tests -A run.all
.bash: PREEXEC_READY: unbound variable
though...Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.