Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Convert stray bash block to console convention in config docs (#1788)
Maximilian Roos29d762a05f40
diff --git a/docs/content/config.md b/docs/content/config.mdindex d6d88d0b8..bfcacf1c8 100644--- a/docs/content/config.md+++ b/docs/content/config.md@@ -576,9 +576,7 @@ Default branch detection and override.Useful in scripts to avoid hardcoding `main` or `master`:-```bash-git rebase $(wt config state default-branch)-```+{{ terminal(cmd="git rebase $(wt config state default-branch)") }}Without a subcommand, runs `get`. Use `set` to override, or `clear` then `get` to re-detect.diff --git a/skills/worktrunk/reference/config.md b/skills/worktrunk/reference/config.mdindex 4b928024c..5e5ab03aa 100644--- a/skills/worktrunk/reference/config.md+++ b/skills/worktrunk/reference/config.md@@ -588,7 +588,7 @@ Default branch detection and override.Useful in scripts to avoid hardcoding `main` or `master`:```bash-git rebase $(wt config state default-branch)+$ git rebase $(wt config state default-branch)```Without a subcommand, runs `get`. Use `set` to override, or `clear` then `get` to re-detect.diff --git a/src/cli/config.rs b/src/cli/config.rsindex 031aa2b72..ca6b2361e 100644--- a/src/cli/config.rs+++ b/src/cli/config.rs@@ -322,8 +322,8 @@ pub enum StateCommand {name = "default-branch",after_long_help = r#"Useful in scripts to avoid hardcoding `main` or `master`:-```bash-git rebase $(wt config state default-branch)+```console+$ git rebase $(wt config state default-branch)```Without a subcommand, runs `get`. Use `set` to override, or `clear` then `get` to re-detect.diff --git a/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap b/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snapindex 13e6721de..06032f21c 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_state_default_branch.snap@@ -58,7 +58,7 @@ Usage: [1m[36mwt config state default-branch[0m [36m[OPTIONS][0m [36m[COMMUseful in scripts to avoid hardcoding [2mmain[0m or [2mmaster[0m:-[107m [0m [2m[0m[2m[34mgit[0m[2m rebase $([0m[2m[34mwt[0m[2m config state default-branch)[0m+[107m [0m [2m[0m[2m[36m$[0m[2m git[0m[2m rebase $([0m[2m[34mwt[0m[2m config state default-branch)[0mWithout a subcommand, runs [2mget[0m. Use [2mset[0m to override, or [2mclear[0m then [2mget[0m to re-detect.