You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Install a oh-my-zsh plugin that uses caching. E.g. docker and last-working-dir
2. Try using them. In the case of last-working-dir, change directories.
In the case of docker, just loading the prompt produces an error.
Expected behavior
They should work as expected.
Current behavior
The cache directory isn't defined, so the errors manifest as trying to save/load from a root directory.
Code snippet
zi wait lucid for
OMZP::docker
OMZP::last-working-dir
Additional information
I managed to fix this by adding this:
mkdir -p ~$HOME/.cache/zi
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/zi"
This is not a problem in the original zinit, so this is a regression.
Obviously the solution is fairly simple: add a default cache dir variable when loading anything that comes from OMZP.
Self-service
I'd be willing to address this documentation request myself.
The text was updated successfully, but these errors were encountered:
fireboy1919
added
bug 🐞
Inconsistencies or issues which will cause a problem for users or implementors.
triage 📑
The issue is awaiting investigation.
labels
Nov 1, 2024
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍
Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!
Environment
Linux
Reproduction steps
Expected behavior
Current behavior
The cache directory isn't defined, so the errors manifest as trying to save/load from a root directory.
Code snippet
zi wait lucid for
OMZP::docker
OMZP::last-working-dir
Additional information
I managed to fix this by adding this:
mkdir -p ~$HOME/.cache/zi
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/zi"
This is not a problem in the original zinit, so this is a regression.
Obviously the solution is fairly simple: add a default cache dir variable when loading anything that comes from OMZP.
Self-service
Have you read the Contributing Guidelines?
Are you familiar with the Contributor Covenant Code of Conduct?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: