gist: https://gist.github.com/shindi-renuo/ebd411a5f4268ca6f8736629bfd88d86
A simple TypeScript CLI Tool that opens the browser to create a PR.
First, clone the repo into your home folder and cd into it.
Then, run bun add -g open, or pnpm add -g open depending on your stack.
Then, create a file called cpr in /usr/bin and paste the following contents into it:
#!/bin/bash
bun run ~/create-pr/index.ts # I'm using bun here, but you can use anything you want :DThen lastly make it executable using chmod +x /usr/bin/cpr.
Then start using it ;)