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