From cb4fd7c2a131f63604c34c203b8034740c772ff1 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Tue, 11 Jun 2024 11:15:26 +0200 Subject: [PATCH] feat(fish): add function to switch the working directory to a Git worktree --- fish/functions/fwt.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fish/functions/fwt.fish diff --git a/fish/functions/fwt.fish b/fish/functions/fwt.fish new file mode 100644 index 0000000..cabdb32 --- /dev/null +++ b/fish/functions/fwt.fish @@ -0,0 +1,3 @@ +function fwt --description "Jump to Git worktree directory" + cd (git worktree list | awk '{print $1}' | fzf) +end