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

disable ! #1196

Closed
bootstraponline opened this issue Apr 15, 2014 · 3 comments
Closed

disable ! #1196

bootstraponline opened this issue Apr 15, 2014 · 3 comments

Comments

@bootstraponline
Copy link

[6] pry(main)> ! true
Input buffer cleared!

I expect false. Instead ! is clearing the input buffer. How do I turn this off?

@bootstraponline
Copy link
Author

$ irb
2.1.1 :001 > ! false
 => true 
2.1.1 :002 > ! true
 => false 

@banister
Copy link
Member

Pry.config.command_prefix = % will force you to use the % prefix before running pry commands (such as !). Alternatively you can just remove the ! command with this in your .pryrc: Pry.commands.delete("!")

@bootstraponline
Copy link
Author

Awesome. Thanks for fixing this!

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

2 participants