bashx

Crates.iobashx
lib.rsbashx
version0.2.0
created_at2025-08-07 09:04:54.769161+00
updated_at2025-08-07 09:29:42.725422+00
descriptionRun bash scripts from GitHub with ease
homepage
repositoryhttps://github.com/DeepanshuMishraa/bashx
max_upload_size
id1784954
size27,941
Deepanshu Mishra (DeepanshuMishraa)

documentation

README

bashx

Run bash scripts from GitHub repositories.

crates.io

Install

# From source
git clone https://github.com/DeepanshuMishraa/bashx
cd bashx
cargo build --release

# Install globally
cargo install  bashx

# Add to PATH (if not already configured)
export PATH="$HOME/.cargo/bin:$PATH"

Quick Start

# Download scripts from a repo
bashx get https://github.com/username/scripts

# List available scripts
bashx list

# Run a script (prompts for confirmation)
bashx run backup

# Clean cache
bashx clean

Commands

bashx get <url>

Clones a GitHub repository to ~/.bashx/cache/

bashx list

Shows all .sh files in your cache

bashx run <name>

Finds and executes a script by name (without .sh extension)

  • Prompts for security confirmation
  • Sets executable permissions
  • Runs in script's directory

bashx clean

Removes all cached scripts

Security

⚠️ Scripts have full system access. Only run scripts from trusted sources.

License

MIT

Commit count: 0

cargo fmt