From b8d31ca408249f79c00db1def08d25667ef27f4a Mon Sep 17 00:00:00 2001 From: Chris Guidry Date: Fri, 31 Jul 2026 06:08:16 -0400 Subject: [PATCH] Give the repo a storied shim via direnv direnv cannot export shell aliases, so .envrc writes a storied script to .direnv/bin and adds it to PATH. Inside the repo, `storied roll d20` now replaces `cargo run --quiet -- roll d20`. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CUXjWo1zGFhdJUig1hcQGf --- .envrc | 10 ++++++++++ .gitignore | 1 + 2 files changed, 11 insertions(+) diff --git a/.envrc b/.envrc index 4fa4a24..698c56b 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,11 @@ source_env_if_exists .envrc.private + +# direnv cannot export shell aliases, so `storied` is a shim script on +# PATH that runs the debug build. +mkdir -p .direnv/bin +cat > .direnv/bin/storied <<'SH' +#!/usr/bin/env bash +exec cargo run --quiet -- "$@" +SH +chmod +x .direnv/bin/storied +PATH_add .direnv/bin diff --git a/.gitignore b/.gitignore index b2d982e..d57d93e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .env .envrc.private +/.direnv/ /.superpowers/ # Added by cargo -- 2.51.2