summaryrefslogtreecommitdiff
path: root/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-12 21:41:06 +0200
committerPaul Buetow <paul@buetow.org>2026-02-12 21:41:06 +0200
commit1ffe473b612740b10621b5792f63b6bed2c7a57b (patch)
tree0e530a466cf4d71192b03ac527f4ffc36765598a /Rexfile
parentced974f52f9193533709d6fc7974287dfa104ba8 (diff)
foo
Diffstat (limited to 'Rexfile')
-rw-r--r--Rexfile24
1 files changed, 16 insertions, 8 deletions
diff --git a/Rexfile b/Rexfile
index ef19e94..73b3552 100644
--- a/Rexfile
+++ b/Rexfile
@@ -145,16 +145,24 @@ 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 slash commands for Cursor and Claude';
-task 'home_slashcommands', sub {
+desc 'Install promps links for AI tools';
+task 'home_prompts', sub {
+ if ( -d "$HOME/Notes/Prompts/commands" ) {
+ Rex::Logger::info("Installing prompt links");
- # Install to ~/.cursor/commands/ for Cursor
- file "$HOME/.cursor" => ensure => 'directory', mode => '0750';
- ensure "$DOT/slashcommands/*" => "$HOME/.cursor/commands/", '0750';
+ # Install to ~/.cursor/commands/ for Cursor
+ file "$HOME/.cursor" => ensure => 'directory', mode => '0750';
+ symlink "$HOME/Notes/Prompts/commands" => "$HOME/.cursor/commands" or die "Could not create symlink: $!";
- # Install to ~/.claude/commands/ for Claude Code global slash commands
- file "$HOME/.claude" => ensure => 'directory', mode => '0750';
- ensure "$DOT/slashcommands/*" => "$HOME/.claude/commands/", '0750';
+ file "$HOME/.claude" => ensure => 'directory', mode => '0750';
+ symlink "$HOME/Notes/Prompts/commands" => "$HOME/.claude/commands" or die "Could not create symlink: $!";
+
+ file "$HOME/.agents" => ensure => 'directory', mode => '0750';
+ symlink "$HOME/Notes/Prompts/commands" => "$HOME/.agents/commands" or die "Could not create symlink: $!";
+ }
+ else {
+ Rex::Logger::info("Not installing prompt links");
+ }
};
desc 'Install ~/scripts';