Add a shorter alias for the whereami command

Open
#1,086 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
ruby
Domain
cli, devtools

Research direction

Start by locating the default command-alias definitions and compare the existing list/l alias mentioned in the issue. Add the requested short alias for whereami, then verify that the alias invokes the same command without raising an error and run the relevant CLI tests.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Ruby
Stars
1.3k
Forks
146
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/debug

All issues in ruby/debug

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.