Permalink
Browse files

moved nyan-cat to eastereggs and made it hidden

  • Loading branch information...
1 parent 25bba20 commit af5e1f859b473c694258e73d921444678a0b7f8a @banister banister committed Apr 17, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −0 lib/pry/default_commands/easter_eggs.rb
  2. +0 −3 lib/pry/default_commands/misc.rb
View
4 lib/pry/default_commands/easter_eggs.rb
@@ -3,6 +3,10 @@ module DefaultCommands
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
3 lib/pry/default_commands/misc.rb
@@ -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

0 comments on commit af5e1f8

Please sign in to comment.