2

Is there a shorthand for the whereami command in Pry ?

If not, is there a way to define an alias for Pry commands in config like .pryrc ?

ejoubaud
  • 5,013
  • 6
  • 37
  • 39

1 Answers1

8

Couldn't find any built-in shorthand, but adding this to ~/.pryrc seems to do the trick:

Pry.config.commands.alias_command "@", "whereami"

More info on Prys's Pry rc Wiki page

ejoubaud
  • 5,013
  • 6
  • 37
  • 39