Skip to main content

Module shell

Module shell 

Source
Expand description

Shell integration workflow (git claw shell-hook).

Emits shell wrapper functions for Bash, Zsh, and Fish enabling automatic directory navigation (cd) upon worktree creation, switching, and finishing.

Structs§

ShellHookOptions
Options for shell hook generation.

Functions§

generate_fish_hook
Generates native shell integration functions for Fish shell.
generate_posix_hook
Generates POSIX-compatible shell integration functions for Bash and Zsh.
generate_shell_hook
Generates the shell hook script for the specified shell.
run_shell_hook
Runs the shell hook workflow, outputting the wrapper script to stdout.