Switch between git worktrees with speed. ⚡
Download the script from the Release section.
Make the script executable.
$ chmod +x wtCopy the executable to any directory in your $PATH
$ sudo cp wt /usr/local/binFor Bash
sudo cp completions/wt_completion /etc/bash_completion.dFor ZSH
Note: completion file for zsh has
_prefix
Find paths where you can store your completion
print -rl -- $fpathCopy completion script to one of that location and restart the shell.
sudo cp completions/_wt_completion <one-of-$fpath>
exec zshFor Fish
cp completions/wt.fish ~/.config/fish/completionsTab autocompletion works for switching between your worktrees.
wt <TAB> <TAB>
# OR
wt <completion-characters> <TAB>Switch between worktrees. You can do a text search to change to the worktree directory.
$ wt <worktree-name/search-term>
# Select worktree interactively
$ wt -iGo to root worktree directory
$ wt -List out all the worktrees.
$ wt listShow help message
$ wt helpUpdate to the latest release
$ wt updateShow the CLI version
$ wt version