Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

docs: deduplicate manual shell setup from `wt config --help` (#986)

Maximilian Roos61e501e8d4d7
diff --git a/.claude-plugin/skills/worktrunk/reference/config.md b/.claude-plugin/skills/worktrunk/reference/config.md
index 6c2cd0a43..73358aa61 100644
--- a/.claude-plugin/skills/worktrunk/reference/config.md
+++ b/.claude-plugin/skills/worktrunk/reference/config.md
@@ -305,18 +305,7 @@ Worktrunk needs shell integration to change directories when switching worktrees
wt config shell install
```
-Or manually add to the shell config:
-
-```bash
-# For bash: add to ~/.bashrc
-eval "$(wt config shell init bash)"
-
-# For zsh: add to ~/.zshrc
-eval "$(wt config shell init zsh)"
-
-# For fish: add to ~/.config/fish/config.fish
-wt config shell init fish | source
-```
+For manual setup, see `wt config shell init --help`.
Without shell integration, `wt switch` prints the target directory but cannot `cd` into it.
diff --git a/docs/content/config.md b/docs/content/config.md
index c9af92894..7ac4460ab 100644
--- a/docs/content/config.md
+++ b/docs/content/config.md
@@ -313,18 +313,7 @@ Worktrunk needs shell integration to change directories when switching worktrees
wt config shell install
```
-Or manually add to the shell config:
-
-```bash
-# For bash: add to ~/.bashrc
-eval "$(wt config shell init bash)"
-
-# For zsh: add to ~/.zshrc
-eval "$(wt config shell init zsh)"
-
-# For fish: add to ~/.config/fish/config.fish
-wt config shell init fish | source
-```
+For manual setup, see `wt config shell init --help`.
Without shell integration, `wt switch` prints the target directory but cannot `cd` into it.
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index e451d50be..a174807e8 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -1756,18 +1756,7 @@ Worktrunk needs shell integration to change directories when switching worktrees
wt config shell install
```
-Or manually add to the shell config:
-
-```console
-# For bash: add to ~/.bashrc
-eval "$(wt config shell init bash)"
-
-# For zsh: add to ~/.zshrc
-eval "$(wt config shell init zsh)"
-
-# For fish: add to ~/.config/fish/config.fish
-wt config shell init fish | source
-```
+For manual setup, see `wt config shell init --help`.
Without shell integration, `wt switch` prints the target directory but cannot `cd` into it.
diff --git a/tests/snapshots/integration__integration_tests__help__help_config_long.snap b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
index a360c1331..0d0ef28c2 100644
--- a/tests/snapshots/integration__integration_tests__help__help_config_long.snap
+++ b/tests/snapshots/integration__integration_tests__help__help_config_long.snap
@@ -316,16 +316,7 @@ Worktrunk needs shell integration to change directories when switching worktrees
wt config shell install
-Or manually add to the shell config:
-
- # For bash: add to ~/.bashrc
- eval "$(wt config shell init bash)"
- 
- # For zsh: add to ~/.zshrc
- eval "$(wt config shell init zsh)"
- 
- # For fish: add to ~/.config/fish/config.fish
- wt config shell init fish | source
+For manual setup, see wt config shell init --help.
Without shell integration, wt switch prints the target directory but cannot cd into it.