Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Update setup_fish_config to install shell extension
Maximilian Roos2990fe4776b8
diff --git a/docs/demos/build b/docs/demos/buildindex 06fb161c5..77a5bd9af 100755--- a/docs/demos/build+++ b/docs/demos/build@@ -177,7 +177,7 @@ def prepare_zellij(env: DemoEnv):# Zellij + Fish configssetup_zellij_config(env)- setup_fish_config(env, wsl_create=False) # No --create, worktrees pre-created+ setup_fish_config(env, REPO_ROOT, wsl_create=False) # No --create, worktrees pre-created# Claude Code config with pre-approved toolsworktree_branches = ["api", "billing", "auth", "metrics"]@@ -241,7 +241,7 @@ echo "Add placeholder module for user profile settings."# Zellij + Fish configs (with --create in wsl abbreviation)setup_zellij_config(env, default_cwd=str(env.repo))- setup_fish_config(env, wsl_create=True)+ setup_fish_config(env, REPO_ROOT, wsl_create=True)# Claude Code config with pre-approved toolsworktree_branches = ["api", "auth", "billing", "feature"]diff --git a/docs/demos/shared/lib.py b/docs/demos/shared/lib.pyindex fe1225ba6..6fef58a8f 100644--- a/docs/demos/shared/lib.py+++ b/docs/demos/shared/lib.py@@ -384,14 +384,16 @@ keybinds clear-defaults=true {{''')-def setup_fish_config(env: DemoEnv, wsl_create: bool = False) -> None:+def setup_fish_config(env: DemoEnv, repo_root: Path, wsl_create: bool = False) -> None:"""Set up Fish shell configuration for demo recording.Creates config with wsl abbreviation, starship, wt shell integration,- and Zellij tab auto-rename.+ and Zellij tab auto-rename. Runs `wt config shell install` to install+ shell extension and completions.Args:env: Demo environment+ repo_root: Path to worktrunk repo (for wt binary)wsl_create: If True, wsl abbreviation includes --create flag"""fish_config_dir = env.home / ".config" / "fish"@@ -405,7 +407,6 @@ set -U fish_greeting ""# wsl abbreviation: switch to worktree and launch Claudeabbr --add wsl '{wsl_cmd}'starship init fish | source-wt config shell init fish | source# Disable cursor blinking for VHS recordingset fish_cursor_default block@@ -422,6 +423,12 @@ function __zellij_tab_rename --on-variable PWDend''')+ # Install shell extension and completions via wt command+ wt_bin = repo_root / "target" / "debug" / "wt"+ install_env = os.environ.copy()+ install_env["HOME"] = str(env.home)+ run([str(wt_bin), "config", "shell", "install", "fish", "--force"], env=install_env)+def setup_mock_clis(env: DemoEnv) -> None:"""Set up comprehensive mock CLIs for all demo scenarios.