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

Add a shorter alias for the whereami command #1086

Open
odinhb opened this issue Feb 29, 2024 · 1 comment
Open

Add a shorter alias for the whereami command #1086

odinhb opened this issue Feb 29, 2024 · 1 comment

Comments

@odinhb
Copy link

odinhb commented Feb 29, 2024

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

@st0012
Copy link
Member

st0012 commented Mar 1, 2024

👋 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants