mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
moved nyan-cat to eastereggs and made it hidden
This commit is contained in:
parent
25bba20a95
commit
af5e1f859b
2 changed files with 4 additions and 3 deletions
|
@ -3,6 +3,10 @@ class Pry
|
|||
|
||||
EasterEggs = Pry::CommandSet.new do
|
||||
|
||||
command "nyan-cat", "", :requires_gem => ["nyancat"] do
|
||||
run ".nyancat"
|
||||
end
|
||||
|
||||
command(/!s\/(.*?)\/(.*?)/, "") do |source, dest|
|
||||
eval_string.gsub!(/#{source}/) { dest }
|
||||
run "show-input"
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
class Pry
|
||||
module DefaultCommands
|
||||
Misc = Pry::CommandSet.new do
|
||||
command "nyan-cat", "Bored?", :requires_gem => ["nyancat"] do
|
||||
_pry_.run_command ".nyancat"
|
||||
end
|
||||
|
||||
command "toggle-color", "Toggle syntax highlighting." do
|
||||
Pry.color = !Pry.color
|
||||
|
|
Loading…
Add table
Reference in a new issue