docs: fix Global Rules directory location for Linux/WSL systems #5219
+18
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
Issue: #5153
Description
This PR fixes incorrect documentation for the Global Rules directory location on Linux/WSL systems. The previous documentation stated that Global Rules are universally stored in
Documents/Cline/Rules
, but on Linux/WSL systems, the actual location can vary and may fall back to~/Cline/Rules/
depending on system configuration.Changes made:
This addresses the confusion reported by users who couldn't find their Global Rules in the documented location on Linux systems.
Test Procedure
Testing approach:
src/core/storage/disk.ts
to confirm the actual behavior matches the updated documentationgetDocumentsPath()
function does indeed have platform-specific logic that can result in different paths on Linux systemsensureRulesDirectoryExists()
function to understand the fallback behaviorWhat could potentially break:
Confidence level: High - this is a straightforward documentation correction that accurately reflects the existing codebase behavior.
Type of Change
Pre-flight Checklist
npm test
) and code is formatted and linted (npm run format && npm run lint
)npm run changeset
(required for user-facing changes)Screenshots
Not applicable - this is a documentation text change only.
Additional Notes
This change helps Linux/WSL users who were confused by the previous documentation and couldn't locate their Global Rules files. The updated documentation provides clear guidance for all platforms and explains the potential variation on Linux systems.
Important
Fixes documentation for Global Rules directory on Linux/WSL, adding platform-specific paths and notes.
cline-rules.mdx
.~/Cline/Rules
.src/core/storage/disk.ts
.getDocumentsPath()
andensureRulesDirectoryExists()
for path logic.This description was created by
for 026723b. You can customize this summary. It will automatically update as commits are pushed.