Zsh Worktrunk Plugin

August 27, 2026 ยท View on GitHub

This is a Zsh plugin inspired by the Oh My Zsh git plugin which provides aliases and a few useful functions for working with worktrunk.

Usage

To use this plugin, clone it into $ZSH_CUSTOM/plugins:

git clone https://git.guzek.uk/kguzek/zsh-worktrunk.git "$ZSH_CUSTOM/plugins/"

... and add zsh-worktrunk to the plugins array in your .zshrc file:

plugins=(... zsh-worktrunk)

Aliases

AliasDescriptionCommand
wtlList worktreeswt list
wtsSwitch worktreewt switch
wtsmSwitch to main worktreewt switch $(wt_main_tree)
wtscCreate and switch to a new worktreewt switch --create
wthRun a configured hookwt hook
wtcCommit the current changeswt step commit
wtcpCopy files ignored by git to this worktreewt step copy-ignored
wtdShow the current worktree's diffwt step diff
wtrDelete worktreewt remove
wtRDelete worktree (force)wt remove --force

Functions

FunctionDescription
wt_main_treeOutput the path to the main worktree

License: MIT

Copyright (c) 2026 Konrad Guzek