debug icon indicating copy to clipboard operation
debug copied to clipboard

Add a shorter alias for the whereami command

Open odinhb opened this issue 1 year ago • 1 comments

Your proposal Add an alias for whereami called w. Or something else short.

Additional context Since the list command is stateful (continuing to print source code below if you run it multiple times), I find myself using whereami instead. But I wish it had a short alias (like list has l). I've already mistyped whereami as both wherami and once I even forgot the last bit and simply typed where, both of which crash with a NoMethodError.

Reading through https://github.com/ruby/debug/issues/639 it seems the idea of allowing users to alias @ whereami would be added but since it hasn't been done I think it would be better to just add it to the defaults.

@ would be similiar to pry so maybe that makes it easier for some people to switch?

odinhb avatar Feb 29 '24 13:02 odinhb

👋 IRB has both whereami and the @ alias for it. You can use binding.irb as breakpoints and then activate the irb:rdbg integration to access debug commands, then you get features from both tools.

st0012 avatar Mar 01 '24 08:03 st0012