gmc
Worktree

Shell Integration

Generate shell integration for worktree switching.

gmc wt init prints shell integration code.

Usage

gmc wt init bash
gmc wt init zsh
gmc wt init fish

Load it

eval "$(gmc wt init zsh)"

For fish:

gmc wt init fish | source

Notes

This is different from gmc completion. Completion completes commands; worktree shell integration lets gmc wt switch change directories.

On this page