Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

2bitbit/rua

Repository files navigation

Rua - A Smart Command Launcher

English | 简体中文 

Rua is a fast and simple terminal utility that allows you to save and quickly access your frequently used shell commands through an interactive, key-based menu.

Demo

demo

Key Features

  • Interactive TUI: Simply run rua to open a clean, interactive list of your saved commands.Press the shortcut key corresponding to the command to immediately fill in the command line prompt.
  • Smart Expansion: Displays the full, resolved path for commands (e.g., conda becomes C:\Users\...\conda.exe), so you always know exactly what will run.
  • Simple Management: Add, remove, and list your command shortcuts with straightforward subcommands.
  • Cross-Shell Support: Works seamlessly with PowerShell and Zsh with minimal setup.

Installation and Setup

  1. Download the Executable: Download the latest pre-compiled binary for your system from the Releases Page. Place the executable in a convenient location on your computer.

  2. Configure Your Shell: To enable rua to insert the selected command into your terminal prompt, you need to add a small function to your shell's configuration file.

User Manual

The core of Rua is simple and straightforward.

Command Description
rua (No arguments) Launches the interactive TUI. Press a shortcut key to select the corresponding command, which is then inserted into your prompt. Press Esc to exit.
rua add <KEY> '<COMMAND>' Adds a new command shortcut. The key must be a single alphanumeric character.
Example: rua add g 'git status --short'
rua rm <KEYs>... Removes a command shortcut by its key.
Example: rua rm a b c d
rua ls Lists all saved commands and their expanded paths without launching the interactive TUI.

Building From Source

If you prefer to build the project yourself:

  1. Clone and Build:
# Clone the repository
git clone https://github.com/2bitbit/rua.git
cd rua
# Build the release executable
cargo build --release
  1. Configure Shell: Remember to follow the shell setup steps mentioned in the "Installation" section above.

AltStyle によって変換されたページ (->オリジナル) /