Skip to content

Commit 58cb3fb

Browse files
committed
fixed bug causing rules .mdc files to be installed in the wrong directory.
1 parent fdf6b37 commit 58cb3fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cursor_utils/cli/commands/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def install_command(
6767
console = Console()
6868

6969
# Step 1: Create ~/.cursor/rules/ directory if it doesn't exist
70-
rules_dir = Path.home() / ".cursor" / "rules"
70+
rules_dir = Path.cwd() / ".cursor" / "rules"
7171
try:
7272
print_info(f"Checking if {rules_dir} exists...")
7373
if not rules_dir.exists():

src/cursor_utils/services/updater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_current_version(self) -> str:
7272
except ImportError:
7373
# If that fails, try to get it from the cursor-utils.mdc file
7474
try:
75-
rules_dir = Path.home() / ".cursor" / "rules"
75+
rules_dir = Path.cwd() / ".cursor" / "rules"
7676
mdc_file = rules_dir / "cursor-utils.mdc"
7777

7878
if not mdc_file.exists():

0 commit comments

Comments
 (0)