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 support for zsh shell completions #3887

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Nov 30, 2024

This also fixes rr ls not to list pre-installed files as traces.

cc #3681

$rr --list-commands | cut -s -d ' ' -f 3
}
_rr_traces() {
$rr ls | grep -v '^cpu_lock$'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this grep -v isn't strictly necessary now that rr doesn't show cpu_lock in rr ls. but in older versions, cpu_lock was the only file shown that wouldn't be a valid trace. so it would be nice to keep this so that the script is compatible with older versions too.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the value in having the script be compatible with older versions but I guess this is harmless.

@jyn514 jyn514 force-pushed the zsh-completion branch 2 times, most recently from 9a76aae to 3474507 Compare November 30, 2024 08:02
src/util.cc Outdated Show resolved Hide resolved
src/util.cc Outdated Show resolved Hide resolved
$rr --list-commands | cut -s -d ' ' -f 3
}
_rr_traces() {
$rr ls | grep -v '^cpu_lock$'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the value in having the script be compatible with older versions but I guess this is harmless.

This also fixes `rr ls` not to list pre-installed files as traces.
@rocallahan rocallahan merged commit 84b7de5 into rr-debugger:master Nov 30, 2024
2 checks passed
@jyn514 jyn514 deleted the zsh-completion branch November 30, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants