Sha256: 486916169c122b3fa078bfdf97233b7939f8e7bdf7b3d01a18b41f048558f4e6
Contents?: true
Size: 736 Bytes
Versions: 6790
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true class Pry class Command class ShellMode < Pry::ClassCommand match 'shell-mode' group 'Input and Output' description 'Toggle shell mode. Bring in pwd prompt and file completion.' banner <<-'BANNER' Toggle shell mode. Bring in pwd prompt and file completion. BANNER def process state.disabled ^= true if state.disabled state.prev_prompt = pry_instance.prompt pry_instance.prompt = Pry::Prompt[:shell] else pry_instance.prompt = state.prev_prompt end end end Pry::Commands.add_command(Pry::Command::ShellMode) Pry::Commands.alias_command 'file-mode', 'shell-mode' end end
Version data entries
6,790 entries across 6,786 versions & 31 rubygems