DDEV add-on to manage Cursor IDE configuration directory in the container right.
ddev add-on get MurzNN/ddev-cursorWhen you attach the IDE to the DDEV container, it automatically creates multiple directories in the home directory, and downloads all necessary files there, and everything works great!
But there are several issues with this:
-
The directory disappears after restarting the DDEV container, so every time all files have to be downloaded again.
-
Some directories contain user-related settings, which better to have shared between all projects. For example, the list of extensions
-
Cache files are stored together with the data, making the directory size huge and not easy to clean up.
-
Add-on creates persistent volumes for the related directories to make them not disappear on each restart.
-
User-related settings mounted to
$HOME/.local/state/ddev-cursorto be shared between all DDEV projects. -
Cache-related directories mounted to
$HOME/.cache/ddev-cursorto be easily cleaned up with all other caches.