gitwtfhub

wtf is ripl-shell_commands?

postmodern/ripl-shell_commands — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2012-12-02

1RubyAudience · developerComplexity · 1/5DormantSetup · easy

TL;DR

A small Ruby gem that lets you run system shell commands directly inside the Ripl interactive Ruby shell, using an exclamation-mark prefix.

Mindmap

mindmap
  root((ripl-shell_commands))
    What it does
      Inline shell commands
      Exclamation prefix
      Use Ruby variables
    Tech stack
      Ruby
      Ripl gem
    Use cases
      Debugging workflow
      File exploration
      Quick system checks
    Audience
      Ruby developers
      Ripl users
    Benefit
      No context switching
      Stay in shell

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Run quick shell commands like !date or !ls without leaving the Ripl shell.

REASON 2

Check files on disk or environment variables while debugging Ruby code.

REASON 3

Use Ruby variables directly in inline shell commands for exploratory scripting.

REASON 4

Avoid switching between the terminal and the Ripl shell during a coding session.

What's in the stack?

Ruby

How it stacks up

postmodern/ripl-shell_commandsamitsuryavanshi/graphiti-activegraphcrazywoola/homebrew-dify
Stars111
LanguageRubyRubyRuby
Last pushed2012-12-022022-12-092025-04-25
MaintenanceDormantDormantStale
Setup difficultyeasyhardeasy
Complexity1/53/51/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires using Ripl instead of the more common IRB shell.

Wtf does this do

This is a small Ruby tool that extends Ripl, an interactive Ruby shell similar to IRB. It adds the ability to run system commands directly from within the shell without leaving it or switching windows. Normally, when you're working in an interactive Ruby shell, you'd need to exit, run a command like ls or date in your terminal, and then jump back into Ruby. This plugin lets you stay in the shell and run those commands inline by prefixing them with an exclamation mark. For example, typing !date will show you the current date and time right there in the shell, and !ls /some/path will list files in that directory. You can even use Ruby variables in your shell commands, so if you've stored a path in a variable like @path, you can use it with !ls #{@path} just like in regular Ruby code. The practical benefit is a smoother workflow. If you're debugging something in Ruby and need to check files on disk, look at environment variables, or run quick system commands, you can do it all without breaking your flow, no context switching, no closing and reopening the shell. It's particularly useful for exploratory scripting or when you're working with file paths and need to verify what's actually on the filesystem. Since Ripl is a niche tool for Ruby developers who prefer it over the more common IRB, this plugin is for that community. It's a lightweight add-on that installs as a Ruby gem, so if you use Ripl and find yourself frequently jumping back and forth between the shell and your terminal, it could save you some repetitive switching.

Yoink these prompts

Prompt 1
Show me how to install the ripl-shell_commands gem for the Ripl shell.
Prompt 2
Explain how to run inline shell commands like !ls inside Ripl.
Prompt 3
Help me use a Ruby variable inside a !command in Ripl with ripl-shell_commands.
Prompt 4
What's the difference between using ripl-shell_commands and switching to a terminal manually?

Frequently asked questions

wtf is ripl-shell_commands?

A small Ruby gem that lets you run system shell commands directly inside the Ripl interactive Ruby shell, using an exclamation-mark prefix.

What language is ripl-shell_commands written in?

Mainly Ruby. The stack also includes Ruby.

Is ripl-shell_commands actively maintained?

Dormant — no commits in 2+ years (last push 2012-12-02).

How hard is ripl-shell_commands to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is ripl-shell_commands for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.