Created
May 26, 2026 12:38
-
-
Save bholmesdev/b245cbdcdde214b777b1a32125fdc49c to your computer and use it in GitHub Desktop.
worktree with env symlinked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name = "Worktree: MY REPO" | |
| [[panes]] | |
| commands = [ | |
| "git worktree add -b {{autogenerated_branch_name}} ~/.warp/worktrees/MY_REPO/{{autogenerated_branch_name}}", | |
| "cd ~/.warp/worktrees/MY_REPO/{{autogenerated_branch_name}}", | |
| "find ~/Projects/MY_REPO -type f -name '.env.*' -exec sh -c 'for f do rel=\"${f#~/Projects/MY_REPO/}\"; [ -e \"$rel\" ] || [ -L \"$rel\" ] && continue; mkdir -p \"$(dirname \"$rel\")\"; ln -s \"$f\" \"$rel\"; done' sh {} +", | |
| "pnpm i" | |
| ] | |
| directory = "~/Projects/MY_REPO" | |
| id = "main" | |
| type = "terminal" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment