Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

rura

> 包管理
Open source

Build shell pipelines interactively, without the edit-rerun loop

321 stars0 likes2 views
WebsiteGitHub

About

Build shell pipelines interactively, without the edit-rerun loop

Rura is a terminal UI for building shell pipelines. Edit a pipe like grep | sort | uniq, see output update live, inspect any stage, and diff between runs — replacing the usual edit, up-arrow, rerun loop.

Features

  • Partial Pipeline Execution: Execute only up to the current subcommand to debug complex pipes.
  • Live Execution Modes: Real-time feedback as you type, with optional "Live Until Cursor" or "Live Full" modes.
  • Diff Mode: Line-based diff between two outputs, with a selectable base (stdin or any subcommand's output).
  • Presets: Save frequently used commands as named presets with optional single-key shortcuts.
  • Context-aware Completion: Tab-complete commands and file paths using your system's bash, zsh, or fish tools.
  • Command Caching: Automatically caches output of subcommands to speed up iteration.
  • Customizable: Fully configurable key bindings, themes, and UI placement via TOML.
  • Vim Mode: Full Vim-style keybindings for command editing (optional).

More features

  • Syntax & Error Highlighting: Visual feedback for subcommand boundaries, quotes, and pipes, plus highlighting of failed subcommands.
  • Custom Shell Support: Specify which shell to use for command execution and completions (supports sh, bash, zsh, fish on Unix and powershell on Windows).
  • Search: Search and highlight text within the output pane with regex support.
  • Command Formatting: Automatically format your command pipeline.
  • Subcommand Editing: Quick copy, cut, and paste of subcommands.
  • Progress Indicator: Visual indicator for long-running commands.
  • Persistent History: Quickly access and reuse previous commands.
  • Save to File: Save current output or command to a file.
  • Line Wrapping: Toggle whether long output lines wrap to fit the view.
  • Line Numbers: Toggle line numbers in the output pane.
  • Output Follow: Automatically scroll to the end of output as new data arrives from stdin.

Demos

Live Execution

Diff Mode

Command and filename completion

More demos

Configurable layout

History

Search with regex support

Line wrapping

Installation

Check the Releases page for pre-compiled binaries for your platform.

Homebrew (macOS/Linux):

bash
brew install rura

Arch Linux (AUR): Install via your AUR helper:

bash
# Pre-compiled binary
yay -S rura-bin

# Build from latest git source
yay -S rura-git

Debian/Ubuntu: Download the .deb package from the Releases page and install it with:

bash
sudo dpkg -i rura__.deb

Fedora/RHEL: Download the .rpm package from the Releases page and install it with:

bash
sudo rpm -ivh rura__.rpm

NixOS:

aiignore
nix-shell -p rura

For other Nix-based installation methods and options, see search.nixos.org.

Cargo:

bash
# From crates.io
cargo install rura

# From source
cargo install --git https://github.com/tlipinski/rura

Usage

You can start Rura by passing a file as an argument, piping data into it, or providing an initial command.

bash
# Open a file
rura --file data.json

# Pipe data into rura
cat logs.txt | rura

# Start with an initial command
rura --command "grep error | sort"

# Print the last executed command from history without opening the UI
rura --last

CLI Arguments

Argument Description
-f, --file Path to the input file.
-c, --command Initial command to populate the input field.
-C, --config Path to a custom TOML configuration file.
--default-config Prints default config to stdout.
-l, --last Print the last command from history and exit.
--no-cache Disable caching of command output.
-s, --shell Specify the shell to use for execution and completions (e.g., bash, zsh, fish). Defaults to sh on Unix and powershell on Windows.
-m, --mode Input mode for command editing (std, vim). Defaults to std.
-V, --version Print version information.

Key Bindings

Command Execution

Key Action
Enter Execute the full command pipeline.
Alt + \ Execute the pipeline up to the current subcommand (where your cursor is).
Alt + | Execute the pipeline up to the previous subcommand.
Alt + i Reset view to show the original input data.
F9 Toggle execution details view.

Navigation & View

Key Action
Arrows
Alt + h / j / k / l Scroll the output (Left, Down, Up, Right).
PageUp / PageDown
Alt + Up / Down
Alt + Shift + j / k
Ctrl + u / d Scroll the output up/down by page.
Alt + Shift + h / l Scroll the output left/right by page.
Alt + w Toggle line wrapping.
Alt + n Toggle line numbers.

Search

Key Action
F3 / F4
Ctrl + f / b Search forward or backward in the output.
Alt + x Toggle regex mode.
Alt + c Toggle case sensitivity.
Ctrl + p Previous search query in history.
Ctrl + n Next search query in history.

Live Execution Modes

Key Action
F11 Toggle "Live Until Cursor" mode. Executes the pipeline up to the cursor as you type (requires confirmation). When already in "Live Full", switches to "Live Until Cursor".
F12 Toggle "Live Full" mode. Executes the entire pipeline as you type (requires confirmation). When already in "Live Until Cursor", switches to "Live Full".

Diff

Key Action
Alt + d Toggle diff mode. Shows a line-based diff between the diff base and the current output.
Alt + / Set the current subcommand's output as the diff base.
Alt + ? Reset the diff base back to the original stdin.

Command Input & Subcommands

Key Action
Tab Trigger forward command or file completion (requires bash, zsh, or fish available).
Shift + Tab Trigger backward command or file completion.
Alt + Right Move cursor to the next subcommand.
Alt + Left Move cursor to the previous subcommand.
Alt + o Format the command pipeline.
Alt + c Copy the current subcommand.
Alt + x Cut the current subcommand.
Alt + v Paste the copied/cut subcommand after the current one.
Home / End
Ctrl + a / e Move cursor to the beginning or end of the command line.
Ctrl + p Previous command in history.
Ctrl + n Next command in history.

Note: If you enable Vim Mode, standard Vim keybindings are supported for command editing. It starts in Insert mode by default. Press Esc to enter Normal mode.

Presets

Key Action
Alt + p Open/close the presets panel.

In the presets panel (select mode):

Key Action
Up / Down Navigate the preset list.
Enter Insert the selected preset after the current subcommand and close the panel.
Alt + Enter Insert the selected preset before the current subcommand and close the panel.
`` Insert the preset with that shortcut after the current subcommand and close the panel.
Shift + Insert the preset with that shortcut before the current subcommand and close the panel.
Ctrl + n Add a new empty preset.
Ctrl + t Add a new preset pre-filled with the curr

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustclipipelineshellterminal

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image