summaryrefslogtreecommitdiff
path: root/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-08 10:27:45 +0200
committerPaul Buetow <paul@buetow.org>2026-02-08 10:27:45 +0200
commitbb89d04e83814bee867a51ad7e967e7c9dfb0b77 (patch)
tree0b089a9dc9f573ba2851ded06f5597fc8c8f32cf /Rexfile
parentf6d2c92703ca4479871a716507a63cb706b14b21 (diff)
Install slash commands for both Cursor and Claude Code
Rename cursor/commands to cursor/slashcommands, rename the Rex task from home_cursor to home_slashcommands, and install the same commands to both ~/.cursor/commands/ and ~/.claude/commands/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Rexfile')
-rw-r--r--Rexfile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Rexfile b/Rexfile
index 6c11a47..2729469 100644
--- a/Rexfile
+++ b/Rexfile
@@ -145,10 +145,15 @@ task 'home_helix', sub { ensure "$DOT/helix/*" => "$HOME/.config/helix/" };
desc 'Install ~/.config/ghostty';
task 'home_ghostty', sub { ensure "$DOT/ghostty/*" => "$HOME/.config/ghostty/" };
-desc 'Install ~/.cursor';
-task 'home_cursor', sub {
+desc 'Install slash commands for Cursor and Claude';
+task 'home_slashcommands', sub {
+ # Install to ~/.cursor/commands/ for Cursor
file "$HOME/.cursor" => ensure => 'directory', mode => '0750';
- ensure "$DOT/cursor/commands/*" => "$HOME/.cursor/commands/", '0750';
+ ensure "$DOT/cursor/slashcommands/*" => "$HOME/.cursor/commands/", '0750';
+
+ # Install to ~/.claude/commands/ for Claude Code global slash commands
+ file "$HOME/.claude" => ensure => 'directory', mode => '0750';
+ ensure "$DOT/cursor/slashcommands/*" => "$HOME/.claude/commands/", '0750';
};
desc 'Install ~/scripts';