1
0
Fork 0
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:
John Mair 2012-04-18 00:20:00 +12:00
parent 25bba20a95
commit af5e1f859b
2 changed files with 4 additions and 3 deletions

View file

@ -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"

View file

@ -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