Skip to content
joaolfpPublic

About

My personal scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

scripts

An interactive terminal menu for the developer scripts I run every day: cloning repositories, installing and updating tools, publishing releases and starting new Rust projects. Pick an option with the arrow keys and press Enter to run it.

Built for personal use, but contributions are welcome.

Installation

With Rust installed:

cargo install --git https://github.com/joaolfp/scripts

On a fresh Mac, scripts/setup_mac.sh installs Rust through rustup and then installs scripts:

./scripts/setup_mac.sh

Docker

docker build -t scripts .
docker run -it --rm scripts

Usage

scripts

Commands

Menu option What it runs
Clone: HeroesOfCode's repositories hoc clone
Clone: My repositories hoc m
Install: Releasor cargo install releasor
Install: Claude curl -fsSL https://claude.ai/install.sh | bash
Update: mise brew upgrade mise
Update: Rust rustup update
Update: Claude claude update
Update: Omarchy omarchy-update
Releasor releasor -f <package>, asks for the package name
Create rust project cargo new <name>, then adds the standard project files
Exit Quits the menu

The menu only runs these commands; the tools they call (hoc, brew, rustup, claude, ...) must already be installed.

Add a new command

Anyone can add a new option to the menu, no Rust knowledge needed. Open Claude Code in this repository and run /add-command followed by what you want, in plain words or as the exact command:

/add-command update Homebrew
/add-command brew upgrade node
/add-command git clone https://github.com/heroesofcode/swift-explorer.git
/add-command install a Node version with `mise use -g node@<version>`, asking for the version

The agent will:

  1. Pick the category (Clone:, Install:, Update: or other) and the menu label.
  2. Write the code, register it in the menu and update the tests and docs.
  3. Run the tests and lint.
  4. Ask whether to publish: commit and push with /commit-push, then bump the version with /prepare-version.

Try the new option with mise cli.

About

My personal scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages