From 12cff0bedbf9d5abafaef9e4fd10ed2df6aed87d Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Tue, 7 May 2024 14:35:31 -0700 Subject: [PATCH] cli `jj util completion --help`: Make the terminal output a bit prettier Cc: https://github.com/martinvonz/jj/pull/2949#issuecomment-2098710774 --- cli/src/commands/util.rs | 8 ++++---- cli/tests/cli-reference@.md.snap | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cli/src/commands/util.rs b/cli/src/commands/util.rs index 49b0a04e05..8ddffc8809 100644 --- a/cli/src/commands/util.rs +++ b/cli/src/commands/util.rs @@ -40,14 +40,14 @@ pub(crate) enum UtilCommand { Apply it by running one of these: -- **bash**: `source <(jj util completion bash)` -- **fish**: `jj util completion fish | source` -- **nushell**: +- Bash: `source <(jj util completion bash)` +- Fish: `jj util completion fish | source` +- Nushell: ```nu jj util completion nushell | save "completions-jj.nu" use "completions-jj.nu" * # Or `source "completions-jj.nu"` ``` -- **zsh**: +- Zsh: ```shell autoload -U compinit compinit diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index e97ae17665..ba895fff64 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1860,14 +1860,14 @@ Print a command-line-completion script Apply it by running one of these: -- **bash**: `source <(jj util completion bash)` -- **fish**: `jj util completion fish | source` -- **nushell**: +- Bash: `source <(jj util completion bash)` +- Fish: `jj util completion fish | source` +- Nushell: ```nu jj util completion nushell | save "completions-jj.nu" use "completions-jj.nu" * # Or `source "completions-jj.nu"` ``` -- **zsh**: +- Zsh: ```shell autoload -U compinit compinit