From dccec766ecd2e1f03074ecd20c8ce073bfb9c1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pacana?= Date: Thu, 24 Sep 2026 18:29:40 +0200 Subject: [PATCH] Run devenv hook after wt switches * Selecting a worktree with wt changes directories inside the current fish command, before the prompt-time devenv hook gets another chance to run. That left the target worktree outside its devenv shell until a later prompt cycle.\n\n* Calling the sourced hook after the directory change keeps normal prompt behavior intact while letting wt enter the selected worktree's devenv shell immediately when the hook is available. --- modules/fish.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/fish.nix b/modules/fish.nix index 99ce945..ff1fcaa 100644 --- a/modules/fish.nix +++ b/modules/fish.nix @@ -50,6 +50,10 @@ else cd "$root/$selected" end + + if functions --query _devenv_hook + _devenv_hook + end ''; functions.wtc = '' -- 2.51.2