Skip to content

Commit

Permalink
fix zsh completion guidance
Browse files Browse the repository at this point in the history
We upgraded to clap 4.1 in 8f1dc49 (cargo: upgrade to clap 4.1,
2023-03-17), and the pipe to `sed` was removed in the README.md file in
that same commit. However the documentation was not updated in mod.rs,
which leads us to give the obsolete (now incorrect) advice when we run
`jj util completion --help`.

See #1393.
  • Loading branch information
listx authored and Linus Arver committed Jul 23, 2023
1 parent 066f31a commit 38e6151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ struct UtilCompletionArgs {
///
/// autoload -U compinit
/// compinit
/// source <(jj util completion --zsh | sed '$d') # remove the last line
/// source <(jj util completion --zsh)
/// compdef _jj jj
#[arg(long, verbatim_doc_comment)]
zsh: bool,
Expand Down

0 comments on commit 38e6151

Please sign in to comment.