Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pry "next" alias does not work #359

Open
mdeguzis opened this issue Apr 21, 2021 · 0 comments
Open

Pry "next" alias does not work #359

mdeguzis opened this issue Apr 21, 2021 · 0 comments

Comments

@mdeguzis
Copy link

~/.pryrc

# Hit Enter to repeat last command
Pry::Commands.command /^$/, "repeat last command" do
  pry_instance.run_command Pry.history.to_a.last
end

Error:

[1] pry(#<Core::Pkg::Name>)>
NameError: undefined local variable or method `pry_instance' for #<#<Class:0x00007f37842bafa8>:0x00007f3783e8a7d0>
from /local/home/deguzim/.pryrc:10:in `block in __pry__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant